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