|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
LinearOperator applying (A - sigma*I)^{-1} via a cached sparse LU factorization: factor once, apply many. More...
#include <shift_invert.hpp>
Public Member Functions | |
| template<typename Parameters> | |
| shift_invert_operator (const mat::compressed2D< Value, Parameters > &A, Value sigma) | |
| template<typename Vec> | |
| vec::dense_vector< Value > | operator* (const Vec &x) const |
| y = (A - sigma*I)^{-1} x | |
| std::size_t | num_rows () const |
| std::size_t | num_cols () const |
LinearOperator applying (A - sigma*I)^{-1} via a cached sparse LU factorization: factor once, apply many.
Plug into the iterative eigensolvers.
Accumulator (trailing, as for the other class templates) selects the accumulation of the factorization and of every solve; void is unchanged.
|
inline |
|
inline |
|
inline |
|
inline |
y = (A - sigma*I)^{-1} x