|
Spectra 1.2.0
Header-only C++ Library for Large Scale Eigenvalue Problems
|
#include <Spectra/MatOp/SparseRegularInverse.h>
Public Types | |
| using | Scalar = Scalar_ |
Public Member Functions | |
| template<typename Derived> | |
| SparseRegularInverse (const Eigen::SparseMatrixBase< Derived > &mat) | |
| Index | rows () const |
| Index | cols () const |
| CompInfo | info () const |
| void | solve (const Scalar *x_in, Scalar *y_out) const |
| void | perform_op (const Scalar *x_in, Scalar *y_out) const |
This class defines matrix operations required by the generalized eigen solver in the regular inverse mode. For a sparse and positive definite matrix \(B\), it implements the matrix-vector product \(y=Bx\) and the linear equation solving operation \(y=B^{-1}x\).
This class is intended to be used with the SymGEigsSolver generalized eigen solver in the regular inverse mode.
| Scalar_ | The element type of the matrix, for example, float, double, and long double. |
| Uplo | Either Eigen::Lower or Eigen::Upper, indicating which triangular part of the matrix is used. |
| 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 37 of file SparseRegularInverse.h.
| using Spectra::SparseRegularInverse< Scalar_, Uplo, Flags, StorageIndex >::Scalar = Scalar_ |
Element type of the matrix.
Definition at line 43 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 67 of file SparseRegularInverse.h.
|
inline |
Return the number of rows of the underlying matrix.
Definition at line 86 of file SparseRegularInverse.h.
|
inline |
Return the number of columns of the underlying matrix.
Definition at line 90 of file SparseRegularInverse.h.
|
inline |
Returns the status of the computation. The full list of enumeration values can be found in Enumerations.
Definition at line 96 of file SparseRegularInverse.h.
|
inline |
Perform the solving operation \(y=B^{-1}x\).
| x_in | Pointer to the \(x\) vector. |
| y_out | Pointer to the \(y\) vector. |
Definition at line 105 of file SparseRegularInverse.h.
|
inline |
Perform the matrix-vector multiplication operation \(y=Bx\).
| x_in | Pointer to the \(x\) vector. |
| y_out | Pointer to the \(y\) vector. |
Definition at line 125 of file SparseRegularInverse.h.