Public Member Functions | Public Attributes | List of all members
gtsam::MatrixProdFunctor Struct Reference

Public Member Functions

int cols () const
 
 MatrixProdFunctor (const Sparse &A, double sigma=0)
 
void perform_op (const double *x, double *y) const
 
int rows () const
 

Public Attributes

const SparseA_
 
double sigma_
 

Detailed Description

This is a lightweight struct used in conjunction with Spectra to compute the minimum eigenvalue and eigenvector of a sparse matrix A; it has a single nontrivial function, perform_op(x,y), that computes and returns the product y = (A + sigma*I) x

Definition at line 576 of file ShonanAveraging.cpp.

Constructor & Destructor Documentation

◆ MatrixProdFunctor()

gtsam::MatrixProdFunctor::MatrixProdFunctor ( const Sparse A,
double  sigma = 0 
)
inlineexplicit

Definition at line 585 of file ShonanAveraging.cpp.

Member Function Documentation

◆ cols()

int gtsam::MatrixProdFunctor::cols ( void  ) const
inline

Definition at line 589 of file ShonanAveraging.cpp.

◆ perform_op()

void gtsam::MatrixProdFunctor::perform_op ( const double *  x,
double *  y 
) const
inline

Definition at line 592 of file ShonanAveraging.cpp.

◆ rows()

int gtsam::MatrixProdFunctor::rows ( void  ) const
inline

Definition at line 588 of file ShonanAveraging.cpp.

Member Data Documentation

◆ A_

const Sparse& gtsam::MatrixProdFunctor::A_

Definition at line 579 of file ShonanAveraging.cpp.

◆ sigma_

double gtsam::MatrixProdFunctor::sigma_

Definition at line 582 of file ShonanAveraging.cpp.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:46:23