From: Matthew Fernandez Date: Thu, 1 Jul 2021 03:18:51 +0000 (-0700) Subject: remove now unused dense_transpose X-Git-Tag: 2.48.0~11^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3109b2770ca1b5368e9eba13e138666f7efce35c;p=graphviz remove now unused dense_transpose --- diff --git a/lib/sparse/SparseMatrix.c b/lib/sparse/SparseMatrix.c index cc4091380..1e81eaef2 100644 --- a/lib/sparse/SparseMatrix.c +++ b/lib/sparse/SparseMatrix.c @@ -999,24 +999,6 @@ SparseMatrix SparseMatrix_add(SparseMatrix A, SparseMatrix B){ return C; } - - -static void dense_transpose(real *v, int m, int n){ - /* transpose an m X n matrix in place. Well, we do no really do it without xtra memory. This is possibe, but too complicated for ow */ - int i, j; - real *u; - u = MALLOC(sizeof(real)*((size_t) m)*((size_t) n)); - memcpy(u,v, sizeof(real)*((size_t) m)*((size_t) n)); - - for (i = 0; i < m; i++){ - for (j = 0; j < n; j++){ - v[j*m+i] = u[i*n+j]; - } - } - FREE(u); -} - - static void SparseMatrix_multiply_dense1(SparseMatrix A, real *v, real **res, int dim){ /* A v where v a dense matrix of second dimension dim. Real only for now. */ int i, j, k, *ia, *ja, m;