From: Matthew Fernandez Date: Sat, 23 Jul 2022 15:31:47 +0000 (-0700) Subject: sfdpgen UniformStressSmoother_new: remove unused 'dim' parameter X-Git-Tag: 5.0.1~27^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a54cc4a3470b816cffb3f8bf691e5518ec5249f;p=graphviz sfdpgen UniformStressSmoother_new: remove unused 'dim' parameter --- diff --git a/lib/sfdpgen/uniform_stress.c b/lib/sfdpgen/uniform_stress.c index cbbcb8e61..075d74daf 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(int dim, SparseMatrix A, double *x, double alpha, double M, int *flag){ +UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double *x, double alpha, double M, int *flag){ 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(dim, B, x, 1000000*lambda0, M, flag); + sm = UniformStressSmoother_new(B, x, 1000000*lambda0, M, flag); UniformStressSmoother_smooth(sm, dim, x, maxit); UniformStressSmoother_delete(sm); - sm = UniformStressSmoother_new(dim, B, x, 10000*lambda0, M, flag); + sm = UniformStressSmoother_new(B, x, 10000*lambda0, M, flag); UniformStressSmoother_smooth(sm, dim, x, maxit); UniformStressSmoother_delete(sm); - sm = UniformStressSmoother_new(dim, B, x, 100*lambda0, M, flag); + sm = UniformStressSmoother_new(B, x, 100*lambda0, M, flag); UniformStressSmoother_smooth(sm, dim, x, maxit); UniformStressSmoother_delete(sm); - sm = UniformStressSmoother_new(dim, B, x, lambda0, M, flag); + sm = UniformStressSmoother_new(B, x, lambda0, M, flag); UniformStressSmoother_smooth(sm, dim, x, maxit); UniformStressSmoother_delete(sm); diff --git a/lib/sfdpgen/uniform_stress.h b/lib/sfdpgen/uniform_stress.h index c0491d718..b78799a1c 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(int dim, SparseMatrix A, double *x, double alpha, double M, int *flag); +UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double *x, double alpha, double M, int *flag); void uniform_stress(int dim, SparseMatrix A, double *x, int *flag);