Skip to content

Commit

Permalink
Minor simplification elimination tree
Browse files Browse the repository at this point in the history
  • Loading branch information
bstellato committed Jul 17, 2018
1 parent 520f996 commit 5fb47b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/qdldl.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ QDLDL_int QDLDL_etree(const QDLDL_int n,
etree[i] = j;
}
Lnz[i]++; //nonzeros in this column
sumLnz += 1; // Increase the total number of nonzeros
work[i] = j;
i = etree[i];
}
}
}

//count the total nonzeros
for(i = 0; i < n; i++) sumLnz += Lnz[i];

return sumLnz;
}

Expand Down

0 comments on commit 5fb47b9

Please sign in to comment.