]> granicus.if.org Git - graphviz/commitdiff
sparse SparseMatrix_multiply: remove redundant stores
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 15 Sep 2022 00:40:46 +0000 (17:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 20 Sep 2022 14:36:59 +0000 (07:36 -0700)
lib/sparse/SparseMatrix.c

index 924ad40eafe53717c440703ba02ce8fbb94d6bc1..806063b1295fcfd7702e699a1c515b83c491e756 100644 (file)
@@ -1175,9 +1175,6 @@ SparseMatrix SparseMatrix_multiply(SparseMatrix A, SparseMatrix B){
       double *a = (double*) A->a;
       double *b = (double*) B->a;
       double *c = (double*) C->a;
-      a = (double*) A->a;
-      b = (double*) B->a;
-      c = (double*) C->a;
       ic[0] = 0;
       for (i = 0; i < m; i++){
        for (j = ia[i]; j < ia[i+1]; j++){