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

Constructor & Destructor Documentation

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

Definition at line 587 of file ShonanAveraging.cpp.

Member Function Documentation

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

Definition at line 591 of file ShonanAveraging.cpp.

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

Definition at line 594 of file ShonanAveraging.cpp.

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

Definition at line 590 of file ShonanAveraging.cpp.

Member Data Documentation

const Sparse& gtsam::MatrixProdFunctor::A_

Definition at line 581 of file ShonanAveraging.cpp.

double gtsam::MatrixProdFunctor::sigma_

Definition at line 584 of file ShonanAveraging.cpp.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:18