Public Member Functions | Private Types | Private Attributes | List of all members
Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex > Class Template Reference

#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 SparseMatrixConstGenericSparseMatrix
 
typedef Eigen::Index Index
 
typedef Eigen::Map< const VectorMapConstVec
 
typedef Eigen::Map< VectorMapVec
 
typedef Eigen::SparseMatrix< Scalar, Flags, StorageIndex > SparseMatrix
 
typedef Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
 

Private Attributes

ConstGenericSparseMatrix m_mat
 

Detailed Description

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
class Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >

This class defines the matrix-vector multiplication operation on a sparse real matrix $A$, i.e., calculating $y=Ax$ for any vector $x$. It is mainly used in the GenEigsSolver and SymEigsSolver eigen solvers.

Definition at line 24 of file SparseGenMatProd.h.

Member Typedef Documentation

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
typedef const Eigen::Ref<const SparseMatrix> Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::ConstGenericSparseMatrix
private

Definition at line 32 of file SparseGenMatProd.h.

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
typedef Eigen::Index Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::Index
private

Definition at line 27 of file SparseGenMatProd.h.

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
typedef Eigen::Map<const Vector> Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::MapConstVec
private

Definition at line 29 of file SparseGenMatProd.h.

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
typedef Eigen::Map<Vector> Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::MapVec
private

Definition at line 30 of file SparseGenMatProd.h.

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
typedef Eigen::SparseMatrix<Scalar, Flags, StorageIndex> Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::SparseMatrix
private

Definition at line 31 of file SparseGenMatProd.h.

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::Vector
private

Definition at line 28 of file SparseGenMatProd.h.

Constructor & Destructor Documentation

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::SparseGenMatProd ( ConstGenericSparseMatrix mat)
inline

Constructor to create the matrix operation object.

Parameters
matAn 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.

Member Function Documentation

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
Index Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::cols ( void  ) const
inline

Return the number of columns of the underlying matrix.

Definition at line 55 of file SparseGenMatProd.h.

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
void Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::perform_op ( const Scalar x_in,
Scalar y_out 
) const
inline

Perform the matrix-vector multiplication operation $y=Ax$.

Parameters
x_inPointer to the $x$ vector.
y_outPointer to the $y$ vector.

Definition at line 64 of file SparseGenMatProd.h.

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
Index Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::rows ( void  ) const
inline

Return the number of rows of the underlying matrix.

Definition at line 51 of file SparseGenMatProd.h.

Member Data Documentation

template<typename Scalar, int Flags = 0, typename StorageIndex = int>
ConstGenericSparseMatrix Spectra::SparseGenMatProd< Scalar, Flags, StorageIndex >::m_mat
private

Definition at line 34 of file SparseGenMatProd.h.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:59:21