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

Merge branch 'feature/export-matrixindexset-data' into 'master'

Export missing functionality in MatrixIndexSet

See merge request !559
parents 52260791 3d23f92a
No related branches found
No related tags found
1 merge request!559Export missing functionality in MatrixIndexSet
Pipeline #69095 passed
......@@ -142,6 +142,22 @@ namespace Dune {
/** \brief Return the number of rows */
size_type rows() const {return rows_;}
/** \brief Return the number of columns */
size_type cols() const {return cols_;}
/**
* \brief Return column indices of entries in given row
*
* This returns a range of all column indices
* that have been added for the given column.
* Since there are different internal implementations
* of this range, the result is stored in a std::variant<...>
* which has to be accessed using `std::visit`.
*/
const auto& columnIndices(size_type row) const {
return indices_[row];
}
/** \brief Return the number of entries in a given row */
size_type rowsize(size_type row) const {
return std::visit([&](const auto& rowIndices) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment