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

#include <SparseSymMatProd.h>

Public Member Functions

Index cols () const
 
void perform_op (const Scalar *x_in, Scalar *y_out) const
 
Index rows () const
 
 SparseSymMatProd (ConstGenericSparseMatrix &mat)
 

Private Types

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

const typedef Eigen::Ref< const SparseMatrixConstGenericSparseMatrix
 
ConstGenericSparseMatrix m_mat
 

Detailed Description

template<typename Scalar, int Uplo = Eigen::Lower, int Flags = 0, typename StorageIndex = int>
class Spectra::SparseSymMatProd< Scalar, Uplo, Flags, StorageIndex >

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

Definition at line 23 of file SparseSymMatProd.h.

Member Typedef Documentation

◆ Index

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

Definition at line 26 of file SparseSymMatProd.h.

◆ MapConstVec

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

Definition at line 28 of file SparseSymMatProd.h.

◆ MapVec

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

Definition at line 29 of file SparseSymMatProd.h.

◆ SparseMatrix

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

Definition at line 30 of file SparseSymMatProd.h.

◆ Vector

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

Definition at line 27 of file SparseSymMatProd.h.

Constructor & Destructor Documentation

◆ SparseSymMatProd()

template<typename Scalar , int Uplo = Eigen::Lower, int Flags = 0, typename StorageIndex = int>
Spectra::SparseSymMatProd< Scalar, Uplo, Flags, StorageIndex >::SparseSymMatProd ( 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 43 of file SparseSymMatProd.h.

Member Function Documentation

◆ cols()

template<typename Scalar , int Uplo = Eigen::Lower, int Flags = 0, typename StorageIndex = int>
Index Spectra::SparseSymMatProd< Scalar, Uplo, Flags, StorageIndex >::cols ( ) const
inline

Return the number of columns of the underlying matrix.

Definition at line 54 of file SparseSymMatProd.h.

◆ perform_op()

template<typename Scalar , int Uplo = Eigen::Lower, int Flags = 0, typename StorageIndex = int>
void Spectra::SparseSymMatProd< Scalar, Uplo, 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 63 of file SparseSymMatProd.h.

◆ rows()

template<typename Scalar , int Uplo = Eigen::Lower, int Flags = 0, typename StorageIndex = int>
Index Spectra::SparseSymMatProd< Scalar, Uplo, Flags, StorageIndex >::rows ( ) const
inline

Return the number of rows of the underlying matrix.

Definition at line 50 of file SparseSymMatProd.h.

Member Data Documentation

◆ ConstGenericSparseMatrix

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

Definition at line 31 of file SparseSymMatProd.h.

◆ m_mat

template<typename Scalar , int Uplo = Eigen::Lower, int Flags = 0, typename StorageIndex = int>
ConstGenericSparseMatrix Spectra::SparseSymMatProd< Scalar, Uplo, Flags, StorageIndex >::m_mat
private

Definition at line 33 of file SparseSymMatProd.h.


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


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:25:06