Skip to content

Commit

Permalink
Fix SparseMatrixStorage constructor from SparseMatrixView
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Jan 31, 2025
1 parent 3ef07af commit 64047a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/atlas/linalg/sparse/SparseMatrixStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ class SparseMatrixStorage {

template<typename Value, typename Index>
SparseMatrixStorage::SparseMatrixStorage(const SparseMatrixView<Value,Index>& host_view) {
nnz_ = host_view.nnz_;
rows_ = host_view.rows_;
cols_ = host_view.cols_;
nnz_ = host_view.nnz();
rows_ = host_view.rows();
cols_ = host_view.cols();
outer_.reset(atlas::array::Array::create<Index>(host_view.outer_size()));
inner_.reset(atlas::array::Array::create<Index>(host_view.inner_size()));
value_.reset(atlas::array::Array::create<Value>(host_view.value_size()));
Expand Down

0 comments on commit 64047a1

Please sign in to comment.