#include <SparseGenRealShiftSolve.h>
Public Types | |
using | Scalar = Scalar_ |
Public Member Functions | |
Index | cols () const |
void | perform_op (const Scalar *x_in, Scalar *y_out) const |
Index | rows () const |
void | set_shift (const Scalar &sigma) |
template<typename Derived > | |
SparseGenRealShiftSolve (const Eigen::SparseMatrixBase< Derived > &mat) | |
Private Types | |
using | ConstGenericSparseMatrix = const Eigen::Ref< const SparseMatrix > |
using | Index = Eigen::Index |
using | MapConstVec = Eigen::Map< const Vector > |
using | MapVec = Eigen::Map< Vector > |
using | SparseMatrix = Eigen::SparseMatrix< Scalar, Flags, StorageIndex > |
using | Vector = Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > |
Private Attributes | |
ConstGenericSparseMatrix | m_mat |
const Index | 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.
Scalar_ | The element type of the matrix, for example, float , double , and long double . |
Flags | Either Eigen::ColMajor or Eigen::RowMajor , indicating the storage format of the input matrix. |
StorageIndex | The type of the indices for the sparse matrix. |
Definition at line 31 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 45 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 40 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 42 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 43 of file SparseGenRealShiftSolve.h.
using Spectra::SparseGenRealShiftSolve< Scalar_, Flags, StorageIndex >::Scalar = Scalar_ |
Element type of the matrix.
Definition at line 37 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 44 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 41 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 60 of file SparseGenRealShiftSolve.h.
|
inline |
Return the number of columns of the underlying matrix.
Definition at line 78 of file SparseGenRealShiftSolve.h.
|
inline |
Perform the shift-solve operation .
x_in | Pointer to the ![]() |
y_out | Pointer to the ![]() |
Definition at line 100 of file SparseGenRealShiftSolve.h.
|
inline |
Return the number of rows of the underlying matrix.
Definition at line 74 of file SparseGenRealShiftSolve.h.
|
inline |
Set the real shift .
Definition at line 83 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 47 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 48 of file SparseGenRealShiftSolve.h.
|
private |
Definition at line 49 of file SparseGenRealShiftSolve.h.