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

Constructor & Destructor Documentation

◆ MatrixProdFunctor()

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

Definition at line 580 of file ShonanAveraging.cpp.

Member Function Documentation

◆ cols()

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

Definition at line 584 of file ShonanAveraging.cpp.

◆ perform_op()

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

Definition at line 587 of file ShonanAveraging.cpp.

◆ rows()

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

Definition at line 583 of file ShonanAveraging.cpp.

Member Data Documentation

◆ A_

const Sparse& gtsam::MatrixProdFunctor::A_

Definition at line 574 of file ShonanAveraging.cpp.

◆ sigma_

double gtsam::MatrixProdFunctor::sigma_

Definition at line 577 of file ShonanAveraging.cpp.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:15:38