From 1a54cc4a3470b816cffb3f8bf691e5518ec5249f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 23 Jul 2022 08:31:47 -0700 Subject: [PATCH] sfdpgen UniformStressSmoother_new: remove unused 'dim' parameter --- lib/sfdpgen/uniform_stress.c | 10 +++++----- lib/sfdpgen/uniform_stress.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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); -- 2.40.0