Block diagonal preconditioner: extracts diagonal blocks and uses dense LU.
More...
#include <block_diagonal.hpp>
|
| | block_diagonal (const Matrix &A, size_type block_size) |
| template<typename VecX, typename VecB> |
| void | solve (VecX &x, const VecB &b) const |
| template<typename VecX, typename VecB> |
| void | adjoint_solve (VecX &x, const VecB &b) const |
| | Solve M^H x = b, block by block.
|
template<FieldMatrix Matrix>
class mtl::itl::pc::block_diagonal< Matrix >
Block diagonal preconditioner: extracts diagonal blocks and uses dense LU.
◆ block_diagonal()
template<FieldMatrix Matrix>
◆ adjoint_solve()
template<FieldMatrix Matrix>
template<typename VecX, typename VecB>
Solve M^H x = b, block by block.
This used to delegate to solve(), commented "approximate". It is not an approximation: a diagonal block of a non-symmetric A is itself non-symmetric, so the wrong operator was applied outright. bicg and qmr are the only callers and both failed to converge (#394).
◆ solve()
template<FieldMatrix Matrix>
template<typename VecX, typename VecB>
The documentation for this class was generated from the following file: