From c33f95ca977ef9375b2ff3af3cd81ef51eff3a97 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 11 Jun 2021 21:28:20 -0700 Subject: [PATCH] make matvec_sparse static This function is now no longer used outside of power.c. --- cmd/gvmap/power.c | 4 +++- cmd/gvmap/power.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gvmap/power.c b/cmd/gvmap/power.c index d14b83ff5..e7a6436fd 100644 --- a/cmd/gvmap/power.c +++ b/cmd/gvmap/power.c @@ -11,6 +11,8 @@ #include "power.h" #include +static void matvec_sparse(void *M, real *u, real **v, int transposed, int *flag); + void power_method(void *A, int n, int K, int random_seed, int maxit, real tol, real **eigv, real **eigs){ /* find k-largest eigenvectors of a matrix A. Result in eigv. if eigv == NULL; memory will be allocated. @@ -116,7 +118,7 @@ void power_method(void *A, int n, int K, int random_seed, int maxit, real tol, FREE(vv); } -void matvec_sparse(void *M, real *u, real **v, int transpose, int *flag){ +static void matvec_sparse(void *M, real *u, real **v, int transpose, int *flag){ SparseMatrix A; *flag = 0; diff --git a/cmd/gvmap/power.h b/cmd/gvmap/power.h index 80ccd2e61..a00db3764 100644 --- a/cmd/gvmap/power.h +++ b/cmd/gvmap/power.h @@ -16,6 +16,4 @@ void power_method(void *A, int n, int K, int random_seed, int maxit, real tol, real **eigv, real **eigs); -void matvec_sparse(void *M, real *u, real **v, int transposed, int *flag); - #endif -- 2.40.0