|
ARPACK-Armadillo
|
#include <DenseGenRealShiftSolve.h>
Public Member Functions | |
| DenseGenRealShiftSolve (Matrix &mat_) | |
| int | rows () |
| int | cols () |
| void | set_shift (Scalar sigma) |
| void | perform_op (Scalar *x_in, Scalar *y_out) |
This class defines the shift-solve operation on a general real matrix \(A\), i.e., calculating \(y=(A-\sigma I)^{-1}x\) for any real \(\sigma\) and vector \(x\). It is mainly used in the GenEigsRealShiftSolver eigen solver.
Definition at line 22 of file DenseGenRealShiftSolve.h.
|
inline |
Constructor to create the matrix operation object.
| mat_ | An Armadillo matrix object, whose type can be arma::mat or arma::fmat, depending on the template parameter Scalar defined. |
Definition at line 38 of file DenseGenRealShiftSolve.h.
|
inline |
Return the number of rows of the underlying matrix.
Definition at line 49 of file DenseGenRealShiftSolve.h.
|
inline |
Return the number of columns of the underlying matrix.
Definition at line 53 of file DenseGenRealShiftSolve.h.
|
inline |
Set the real shift \(\sigma\).
Definition at line 58 of file DenseGenRealShiftSolve.h.
|
inline |
Perform the shift-solve operation \(y=(A-\sigma I)^{-1}x\).
| x_in | Pointer to the \(x\) vector. |
| y_out | Pointer to the \(y\) vector. |
Definition at line 70 of file DenseGenRealShiftSolve.h.