MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::sparse::shift_invert_operator< Value, Accumulator > Class Template Reference

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

Detailed Description

template<typename Value, typename Accumulator = void>
class mtl::sparse::shift_invert_operator< Value, Accumulator >

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.

Constructor & Destructor Documentation

◆ shift_invert_operator()

template<typename Value, typename Accumulator = void>
template<typename Parameters>
mtl::sparse::shift_invert_operator< Value, Accumulator >::shift_invert_operator ( const mat::compressed2D< Value, Parameters > & A,
Value sigma )
inline

Member Function Documentation

◆ num_cols()

template<typename Value, typename Accumulator = void>
std::size_t mtl::sparse::shift_invert_operator< Value, Accumulator >::num_cols ( ) const
inline

◆ num_rows()

template<typename Value, typename Accumulator = void>
std::size_t mtl::sparse::shift_invert_operator< Value, Accumulator >::num_rows ( ) const
inline

◆ operator*()

template<typename Value, typename Accumulator = void>
template<typename Vec>
vec::dense_vector< Value > mtl::sparse::shift_invert_operator< Value, Accumulator >::operator* ( const Vec & x) const
inline

y = (A - sigma*I)^{-1} x


The documentation for this class was generated from the following file: