]> granicus.if.org Git - graphviz/commitdiff
make matvec_sparse static
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Jun 2021 04:28:20 +0000 (21:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Jun 2021 17:16:47 +0000 (10:16 -0700)
This function is now no longer used outside of power.c.

cmd/gvmap/power.c
cmd/gvmap/power.h

index d14b83ff5df326b35cea51f2a9d5f4c9579979a6..e7a6436fd900beb8fc02ae7b03726dc2b2bcfac5 100644 (file)
@@ -11,6 +11,8 @@
 #include "power.h"
 #include <sparse/SparseMatrix.h>
 
+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;
index 80ccd2e6186167000175f60a4dbad4f67f2af442..a00db3764890ac53c072393bcdcd881e6b7cce78 100644 (file)
@@ -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