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 572 of file ShonanAveraging.cpp.

Constructor & Destructor Documentation

◆ MatrixProdFunctor()

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

Definition at line 581 of file ShonanAveraging.cpp.

Member Function Documentation

◆ cols()

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

Definition at line 585 of file ShonanAveraging.cpp.

◆ perform_op()

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

Definition at line 588 of file ShonanAveraging.cpp.

◆ rows()

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

Definition at line 584 of file ShonanAveraging.cpp.

Member Data Documentation

◆ A_

const Sparse& gtsam::MatrixProdFunctor::A_

Definition at line 575 of file ShonanAveraging.cpp.

◆ sigma_

double gtsam::MatrixProdFunctor::sigma_

Definition at line 578 of file ShonanAveraging.cpp.


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


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:23:58