From b4aa7d6515c6ee8daa4d7fb4f95b1166c84b2388 Mon Sep 17 00:00:00 2001 From: Tim Quatmann Date: Wed, 20 Sep 2023 13:50:30 +0200 Subject: [PATCH] Explicitly provide class template (fixes #131) --- src/storage/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/matrix.cpp b/src/storage/matrix.cpp index a3d7a1bbd..aec56d54f 100644 --- a/src/storage/matrix.cpp +++ b/src/storage/matrix.cpp @@ -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& matrix, entry_index group) { auto range = matrix.getRowGroupIndices(group); - return std::vector(range.begin(), range.end()); + return std::vector(range.begin(), range.end()); }, py::arg("row_group"), "Get rows within a row group") .def("print_row", [](SparseMatrix const& matrix, entry_index row) { std::stringstream stream;