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

Add utility functions for recursive traversal of matrices and vectors

This allows

```cpp
recursiveForEachMatrixEntry(matrix, [](auto&& matrix_ij, auto&& i, auto&& j) {
  ...
});

recursiveForEachVectorEntry(vector, [](auto&& vector_i, auto&& i) {
  ...
});
```

Here the container is traversed hierachically and the row and column multi-indices
`i` and `j` are instances of `Dune::Functions::StaticMultiIndex` with appropriate
length depending on the nesting depth.
parent fe543f9c
No related branches found
No related tags found
1 merge request!257Add utility functions for recursive traversal of matrices and vectors
Loading
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