]> granicus.if.org Git - graphviz/commitdiff
remove unused mat_print_dense
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Jun 2021 04:01:58 +0000 (21:01 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Jun 2021 17:16:47 +0000 (10:16 -0700)
cmd/gvmap/power.c
cmd/gvmap/power.h

index 5b25f80da6d679f598947d35e4b9f2ea3cd3b062..a41b4af3007226063ea1cd6c5d089fbbc995cb69 100644 (file)
@@ -141,21 +141,3 @@ void matvec_sparse(void *M, int m, int n, real *u, real **v, int transpose,
   SparseMatrix_multiply_vector(A, u, v, transpose);
   return;
 }
-
-void mat_print_dense(real *M, int m, int n){
-  int i, j;
-  fprintf(stderr,"{");
-  for (i = 0; i < m; i++){
-    fprintf(stderr,"{");
-    for (j = 0; j < n; j++){
-      if (j != 0) fprintf(stderr,",");
-      fprintf(stderr,"%f",M[i*n+j]);
-    }
-    if (i != m-1){
-      fprintf(stderr,"},\n");
-    } else {
-      fprintf(stderr,"}");
-    }
-  }
-  fprintf(stderr,"}\n");
-}
index 1c0609683d73d94f98544bd3482bb8341a9a2761..a5c85389d77cafc80572bdbca0974d153bcb9b26 100644 (file)
@@ -19,7 +19,4 @@ void power_method(void (*matvec)(void *M, int m, int n, real *u, real **v, int t
 
 void matvec_sparse(void *M, int m, int n, real *u, real **v, int transposed, int *flag);
 
-void mat_print_dense(real *M, int m, int n);
-
-
 #endif