#include <SparseRegularInverse.h>
Public Member Functions | |
Index | cols () const |
void | mat_prod (const Scalar *x_in, Scalar *y_out) const |
Index | rows () const |
void | solve (const Scalar *x_in, Scalar *y_out) const |
SparseRegularInverse (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 | |
Eigen::ConjugateGradient< SparseMatrix > | m_cg |
ConstGenericSparseMatrix | m_mat |
const int | m_n |
This class defines matrix operations required by the generalized eigen solver in the regular inverse mode. For a sparse and positive definite matrix , it implements the matrix-vector product and the linear equation solving operation .
This class is intended to be used with the SymGEigsSolver generalized eigen solver in the regular inverse mode.
Definition at line 29 of file SparseRegularInverse.h.
|
private |
Definition at line 37 of file SparseRegularInverse.h.
|
private |
Definition at line 32 of file SparseRegularInverse.h.
|
private |
Definition at line 34 of file SparseRegularInverse.h.
|
private |
Definition at line 35 of file SparseRegularInverse.h.
|
private |
Definition at line 36 of file SparseRegularInverse.h.
|
private |
Definition at line 33 of file SparseRegularInverse.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 51 of file SparseRegularInverse.h.
|
inline |
Return the number of columns of the underlying matrix.
Definition at line 67 of file SparseRegularInverse.h.
|
inline |
Perform the matrix-vector multiplication operation .
x_in | Pointer to the vector. |
y_out | Pointer to the vector. |
Definition at line 90 of file SparseRegularInverse.h.
|
inline |
Return the number of rows of the underlying matrix.
Definition at line 63 of file SparseRegularInverse.h.
|
inline |
Perform the solving operation .
x_in | Pointer to the vector. |
y_out | Pointer to the vector. |
Definition at line 76 of file SparseRegularInverse.h.
|
private |
Definition at line 41 of file SparseRegularInverse.h.
|
private |
Definition at line 39 of file SparseRegularInverse.h.
|
private |
Definition at line 40 of file SparseRegularInverse.h.