Skip to content

Commit

Permalink
Explicitly provide class template (fixes #131) (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
volkm authored Oct 31, 2023
2 parents 110f6c9 + b4aa7d6 commit bf3f17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void define_sparse_matrix(py::module& m, std::string const& vtSuffix) {
}, py::return_value_policy::reference, py::keep_alive<1, 0>(), py::arg("row"), "Get row")
.def("get_rows_for_group", [](SparseMatrix<ValueType>& matrix, entry_index<ValueType> group) {
auto range = matrix.getRowGroupIndices(group);
return std::vector(range.begin(), range.end());
return std::vector<uint64_t>(range.begin(), range.end());
}, py::arg("row_group"), "Get rows within a row group")
.def("print_row", [](SparseMatrix<ValueType> const& matrix, entry_index<ValueType> row) {
std::stringstream stream;
Expand Down

0 comments on commit bf3f17e

Please sign in to comment.