#include <SparseGenRealShiftSolve.h>
Public Member Functions | |
| Index | cols () const |
| void | perform_op (const Scalar *x_in, Scalar *y_out) const |
| Index | rows () const |
| void | set_shift (Scalar sigma) |
| SparseGenRealShiftSolve (ConstGenericSparseMatrix &mat) | |
Private Types | |
| typedef const Eigen::Ref< const SparseMatrix > | ConstGenericSparseMatrix |
| typedef Eigen::Index | Index |
| typedef Eigen::Map< const Vector > | MapConstVec |
| typedef Eigen::Map< Vector > | MapVec |
| typedef Eigen::SparseMatrix< Scalar, Flags, StorageIndex > | SparseMatrix |
| typedef Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > | Vector |
Private Attributes | |
| ConstGenericSparseMatrix | m_mat |
| const int | m_n |
| Eigen::SparseLU< SparseMatrix > | m_solver |
This class defines the shift-solve operation on a sparse real matrix
, i.e., calculating
for any real
and vector
. It is mainly used in the GenEigsRealShiftSolver eigen solver.
Definition at line 25 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 33 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 28 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 30 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 31 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 32 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 29 of file SparseGenRealShiftSolve.h.
|
inline |
Constructor to create the matrix operation object.
| mat | An Eigen sparse matrix object, whose type can be Eigen::SparseMatrix<Scalar, ...> or its mapped version Eigen::Map<Eigen::SparseMatrix<Scalar, ...> >. |
Definition at line 47 of file SparseGenRealShiftSolve.h.
|
inline |
Return the number of columns of the underlying matrix.
Definition at line 61 of file SparseGenRealShiftSolve.h.
|
inline |
Perform the shift-solve operation
.
| x_in | Pointer to the vector. |
| y_out | Pointer to the vector. |
Definition at line 83 of file SparseGenRealShiftSolve.h.
|
inline |
Return the number of rows of the underlying matrix.
Definition at line 57 of file SparseGenRealShiftSolve.h.
|
inline |
Set the real shift
.
Definition at line 66 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 35 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 36 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 37 of file SparseGenRealShiftSolve.h.