From d9a8f1ff937e6a76ed403adbfcd6edde2a26aad1 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 23 Jul 2022 08:34:37 -0700 Subject: [PATCH] sfdpgen: make 'UniformStressSmoother_new' a static function This function is not used outside of its containing file. --- lib/sfdpgen/uniform_stress.c | 3 ++- lib/sfdpgen/uniform_stress.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/sfdpgen/uniform_stress.c b/lib/sfdpgen/uniform_stress.c index 3ef8b2131..3777db9d0 100644 --- a/lib/sfdpgen/uniform_stress.c +++ b/lib/sfdpgen/uniform_stress.c @@ -26,7 +26,8 @@ This is somewhat similar to the binary stress model */ -UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double alpha, double M){ +static UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, + double alpha, double M) { UniformStressSmoother sm; int i, j, k, m = A->m, *ia = A->ia, *ja = A->ja, *iw, *jw, *id, *jd; int nz; diff --git a/lib/sfdpgen/uniform_stress.h b/lib/sfdpgen/uniform_stress.h index 4600ed65c..658a539f1 100644 --- a/lib/sfdpgen/uniform_stress.h +++ b/lib/sfdpgen/uniform_stress.h @@ -18,6 +18,4 @@ typedef StressMajorizationSmoother UniformStressSmoother; void UniformStressSmoother_delete(UniformStressSmoother sm); -UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double alpha, double M); - void uniform_stress(int dim, SparseMatrix A, double *x, int *flag); -- 2.40.0