From: Matthew Fernandez Date: Sat, 23 Jul 2022 15:33:57 +0000 (-0700) Subject: sfdpgen UniformStressSmoother_new: remove unused 'flag' parameter X-Git-Tag: 5.0.1~27^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25455e6a4b4254cbdc4157802c02dfff1cb449a2;p=graphviz sfdpgen UniformStressSmoother_new: remove unused 'flag' parameter --- diff --git a/lib/sfdpgen/uniform_stress.c b/lib/sfdpgen/uniform_stress.c index 8d045050d..3ef8b2131 100644 --- a/lib/sfdpgen/uniform_stress.c +++ b/lib/sfdpgen/uniform_stress.c @@ -26,7 +26,7 @@ This is somewhat similar to the binary stress model */ -UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double alpha, double M, int *flag){ +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; @@ -160,19 +160,19 @@ void uniform_stress(int dim, SparseMatrix A, double *x, int *flag){ B = get_distance_matrix(A, scaling); assert(SparseMatrix_is_symmetric(B, false)); - sm = UniformStressSmoother_new(B, 1000000*lambda0, M, flag); + sm = UniformStressSmoother_new(B, 1000000*lambda0, M); UniformStressSmoother_smooth(sm, dim, x, maxit); UniformStressSmoother_delete(sm); - sm = UniformStressSmoother_new(B, 10000*lambda0, M, flag); + sm = UniformStressSmoother_new(B, 10000*lambda0, M); UniformStressSmoother_smooth(sm, dim, x, maxit); UniformStressSmoother_delete(sm); - sm = UniformStressSmoother_new(B, 100*lambda0, M, flag); + sm = UniformStressSmoother_new(B, 100*lambda0, M); UniformStressSmoother_smooth(sm, dim, x, maxit); UniformStressSmoother_delete(sm); - sm = UniformStressSmoother_new(B, lambda0, M, flag); + sm = UniformStressSmoother_new(B, lambda0, M); UniformStressSmoother_smooth(sm, dim, x, maxit); UniformStressSmoother_delete(sm); diff --git a/lib/sfdpgen/uniform_stress.h b/lib/sfdpgen/uniform_stress.h index f74419c82..4600ed65c 100644 --- a/lib/sfdpgen/uniform_stress.h +++ b/lib/sfdpgen/uniform_stress.h @@ -18,6 +18,6 @@ typedef StressMajorizationSmoother UniformStressSmoother; void UniformStressSmoother_delete(UniformStressSmoother sm); -UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double alpha, double M, int *flag); +UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double alpha, double M); void uniform_stress(int dim, SparseMatrix A, double *x, int *flag);