ARPACK-Eigen
|
#include <DenseGenComplexShiftSolve.h>
Public Member Functions | |
DenseGenComplexShiftSolve (ConstGenericMatrix &mat_) | |
int | rows () |
int | cols () |
void | set_shift (Scalar sigmar, Scalar sigmai) |
void | perform_op (Scalar *x_in, Scalar *y_out) |
This class defines the complex shift-solve operation on a general real matrix \(A\), i.e., calculating \(y=\mathrm{Re}\{(A-\sigma I)^{-1}x\}\) for any complex-valued \(\sigma\) and real-valued vector \(x\). It is mainly used in the GenEigsComplexShiftSolver eigen solver.
Definition at line 17 of file DenseGenComplexShiftSolve.h.
|
inline |
Constructor to create the matrix operation object.
mat_ | An Eigen matrix object, whose type can be Eigen::Matrix<Scalar, ...> (e.g. Eigen::MatrixXd and Eigen::MatrixXf ), or its mapped version (e.g. Eigen::Map<Eigen::MatrixXd> ). |
Definition at line 45 of file DenseGenComplexShiftSolve.h.
|
inline |
Return the number of rows of the underlying matrix.
Definition at line 56 of file DenseGenComplexShiftSolve.h.
|
inline |
Return the number of columns of the underlying matrix.
Definition at line 60 of file DenseGenComplexShiftSolve.h.
|
inline |
Set the complex shift \(\sigma\).
sigmar | Real part of \(\sigma\). |
sigmai | Imaginary part of \(\sigma\). |
Definition at line 68 of file DenseGenComplexShiftSolve.h.
|
inline |
Perform the complex shift-solve operation \(y=\mathrm{Re}\{(A-\sigma I)^{-1}x\}\).
x_in | Pointer to the \(x\) vector. |
y_out | Pointer to the \(y\) vector. |
Definition at line 85 of file DenseGenComplexShiftSolve.h.