]> granicus.if.org Git - graphviz/commitdiff
remove now unused dense_transpose
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 1 Jul 2021 03:18:51 +0000 (20:18 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 7 Jul 2021 14:30:16 +0000 (07:30 -0700)
lib/sparse/SparseMatrix.c

index cc40913807e96346fb6a7f4295c695d05debdc94..1e81eaef2b1fec421752159440765a4e42f0883d 100644 (file)
@@ -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;