#include <SparseGenMatProd.h>
Public Member Functions | |
| Index | cols () const |
| void | perform_op (const Scalar *x_in, Scalar *y_out) const |
| Index | rows () const |
| SparseGenMatProd (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 |
This class defines the matrix-vector multiplication operation on a sparse real matrix
, i.e., calculating
for any vector
. It is mainly used in the GenEigsSolver and SymEigsSolver eigen solvers.
Definition at line 24 of file SparseGenMatProd.h.
|
private |
Definition at line 32 of file SparseGenMatProd.h.
|
private |
Definition at line 27 of file SparseGenMatProd.h.
|
private |
Definition at line 29 of file SparseGenMatProd.h.
|
private |
Definition at line 30 of file SparseGenMatProd.h.
|
private |
Definition at line 31 of file SparseGenMatProd.h.
|
private |
Definition at line 28 of file SparseGenMatProd.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 44 of file SparseGenMatProd.h.
|
inline |
Return the number of columns of the underlying matrix.
Definition at line 55 of file SparseGenMatProd.h.
|
inline |
Perform the matrix-vector multiplication operation
.
| x_in | Pointer to the vector. |
| y_out | Pointer to the vector. |
Definition at line 64 of file SparseGenMatProd.h.
|
inline |
Return the number of rows of the underlying matrix.
Definition at line 51 of file SparseGenMatProd.h.
|
private |
Definition at line 34 of file SparseGenMatProd.h.