Skip to content
Snippets Groups Projects
Commit 67128b02 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[bugfix] Allow different multi-index type for row and column

parent aa1e3b6a
No related branches found
No related tags found
No related merge requests found
...@@ -221,17 +221,17 @@ public: ...@@ -221,17 +221,17 @@ public:
return {*matrix_}; return {*matrix_};
} }
template<class MultiIndex> template<class RowMultiIndex, class ColMultiIndex>
const Entry& operator()(const MultiIndex& row, const MultiIndex& col) const const Entry& operator()(const RowMultiIndex& row, const ColMultiIndex& col) const
{ {
MatrixMultiIndexResolver<const Entry&, MultiIndex, MultiIndex> i(row, col); MatrixMultiIndexResolver<const Entry&, RowMultiIndex, ColMultiIndex> i(row, col);
return i(*matrix_); return i(*matrix_);
} }
template<class MultiIndex> template<class RowMultiIndex, class ColMultiIndex>
Entry& operator()(const MultiIndex& row, const MultiIndex& col) Entry& operator()(const RowMultiIndex& row, const ColMultiIndex& col)
{ {
MatrixMultiIndexResolver<Entry&, MultiIndex, MultiIndex> i(row, col); MatrixMultiIndexResolver<Entry&, RowMultiIndex, ColMultiIndex> i(row, col);
return i(*matrix_); return i(*matrix_);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment