Skip to content

Commit

Permalink
Add Dense matrix view creation
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikvn committed Aug 2, 2023
1 parent 29d3c9a commit f54bf08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/base/batch_multi_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void read_impl(MatrixType* mtx, const std::vector<MatrixData>& data)
auto tmp =
MatrixType::create(mtx->get_executor()->get_master(), batch_size);
for (size_type b = 0; b < num_batch_items; ++b) {
assert(data[b].size() == common_size);
assert(data[b].size == common_size);
tmp->create_view_for_item(b)->read(data[b]);
}

Expand Down
4 changes: 2 additions & 2 deletions include/ginkgo/core/base/batch_multi_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ class MultiVector
* significantly more memory efficient than the non-constant version,
* so always prefer this version.
*/
const value_type* get_const_values_for_item(
size_type batch_id) const noexcept
const value_type* get_const_values_for_item(size_type batch_id) const
noexcept
{
GKO_ASSERT(batch_id < this->get_num_batch_items());
return values_.get_const_data() +
Expand Down

0 comments on commit f54bf08

Please sign in to comment.