From: Matthew Fernandez Date: Sat, 12 Jun 2021 04:01:58 +0000 (-0700) Subject: remove unused mat_print_dense X-Git-Tag: 2.48.0~46^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc0fba2674ef1505fe3e7e0702c83544d2657636;p=graphviz remove unused mat_print_dense --- diff --git a/cmd/gvmap/power.c b/cmd/gvmap/power.c index 5b25f80da..a41b4af30 100644 --- a/cmd/gvmap/power.c +++ b/cmd/gvmap/power.c @@ -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"); -} diff --git a/cmd/gvmap/power.h b/cmd/gvmap/power.h index 1c0609683..a5c85389d 100644 --- a/cmd/gvmap/power.h +++ b/cmd/gvmap/power.h @@ -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