Skip to content

Commit

Permalink
review update
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Grützmacher <thomas.gruetzmacher@kit.edu>
  • Loading branch information
upsj and Thomas Grützmacher committed Apr 29, 2020
1 parent 64df3c1 commit 4dfd0b2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions omp/matrix/dense_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,10 @@ void convert_to_coo(std::shared_ptr<const OmpExecutor> exec,
for (size_type col = 0; col < num_cols; ++col) {
auto val = source->at(row, col);
if (val != zero<ValueType>()) {
{
row_idxs[idxs] = row;
col_idxs[idxs] = col;
values[idxs] = val;
++idxs;
}
row_idxs[idxs] = row;
col_idxs[idxs] = col;
values[idxs] = val;
++idxs;
}
}
}
Expand Down

0 comments on commit 4dfd0b2

Please sign in to comment.