-
- Downloads
Helper method to compute the matrix blocklevel
All ISTL vectors and matrices have to export the 'blocklevel' integer. It is used to determine the nesting depth of a given vector or matrix. As it turns out, the vector blocklevel field is never actually used within dune-istl. The matrix blocklevel is used a few times. However, with C++11 and beyond it is quite easy to compute the vector and matrix nestings depths without requiring the blocklevel field from each and every vector and matrix implementation. This patch adds a little helper method matrixBlockLevel that computes the nesting depth of a given matrix type. The method is contained in the Imp namespace, to keep it out of the official dune-istl API.
parent
4396b671
Branches deprecate-blocklevel
No related tags found
Showing
- dune/istl/CMakeLists.txt 1 addition, 0 deletionsdune/istl/CMakeLists.txt
- dune/istl/blocklevel.hh 31 additions, 0 deletionsdune/istl/blocklevel.hh
- dune/istl/eigenvalue/poweriteration.hh 2 additions, 1 deletiondune/istl/eigenvalue/poweriteration.hh
- dune/istl/eigenvalue/test/matrixinfo.hh 2 additions, 1 deletiondune/istl/eigenvalue/test/matrixinfo.hh
- dune/istl/matrixutils.hh 1 addition, 0 deletionsdune/istl/matrixutils.hh
- dune/istl/paamg/fastamg.hh 3 additions, 2 deletionsdune/istl/paamg/fastamg.hh
- dune/istl/test/matrixtest.cc 1 addition, 1 deletiondune/istl/test/matrixtest.cc
Loading
Please register or sign in to comment