From: Matthew Fernandez Date: Sat, 12 Jun 2021 04:28:20 +0000 (-0700) Subject: make matvec_sparse static X-Git-Tag: 2.48.0~46^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c33f95ca977ef9375b2ff3af3cd81ef51eff3a97;p=graphviz make matvec_sparse static This function is now no longer used outside of power.c. --- 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