Skip to content

Commit

Permalink
Merge pull request #1 from ShujianQian/fix-sparse-utilities
Browse files Browse the repository at this point in the history
Fix typo in sparse_utility.h copy_from_to
  • Loading branch information
cheshmi authored Sep 24, 2020
2 parents cb338fd + 967c8cb commit 35700a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparse_utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ namespace sym_lib {

void copy_from_to(CSR *src, CSR *dst){
for (int i = 0; i < src->n; ++i) {
dst->p[i] = dst->p[i];
dst->p[i] = src->p[i];
for (int j = src->p[i]; j < src->p[i + 1]; ++j) {
dst->i[j] = src->i[j];
dst->x[j] = src->x[j];
Expand Down

0 comments on commit 35700a5

Please sign in to comment.