Spectra::SymGEigsShiftInvertOp< OpType, BOpType > Class Template Reference
Description
template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
class Spectra::SymGEigsShiftInvertOp< OpType, BOpType >
This class defines the matrix operation for generalized eigen solver in the shift-and-invert mode. It computes \(y=(A-\sigma B)^{-1}Bx\) for any vector \(x\), where \(A\) is a symmetric matrix, \(B\) is positive definite, and \(\sigma\) is a real shift. This class is intended for internal use.
#include <SymGEigsShiftInvertOp.h>
Public Types | |
| using | Scalar = typename OpType::Scalar |
Public Member Functions | |
| SymGEigsShiftInvertOp (OpType &op, const BOpType &Bop) | |
| Constructor to create the matrix operation object. More... | |
| SymGEigsShiftInvertOp (SymGEigsShiftInvertOp &&other) | |
| Move constructor. | |
| Index | rows () const |
| Return the number of rows of the underlying matrix. | |
| Index | cols () const |
| Return the number of columns of the underlying matrix. | |
| void | set_shift (const Scalar &sigma) |
| Set the real shift \(\sigma\). | |
| void | perform_op (const Scalar *x_in, Scalar *y_out) const |
| Perform the matrix operation \(y=(A-\sigma B)^{-1}Bx\). More... | |
Constructor & Destructor Documentation
◆ SymGEigsShiftInvertOp()
template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
|
inline |
Constructor to create the matrix operation object.
- Parameters
-
op The \((A-\sigma B)^{-1}\) matrix operation object. Bop The \(B\) matrix operation object.
Member Function Documentation
◆ perform_op()
template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
|
inline |
Perform the matrix operation \(y=(A-\sigma B)^{-1}Bx\).
- Parameters
-
x_in Pointer to the \(x\) vector. y_out Pointer to the \(y\) vector.
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono_thirdparty/spectra/Spectra/MatOp/internal/SymGEigsShiftInvertOp.h