Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
Spectra::SymGEigsBucklingOp< OpType, BOpType > Class Template Reference

#include <SymGEigsBucklingOp.h>

Public Types

using Scalar = typename OpType::Scalar
 

Public Member Functions

Index cols () const
 
void perform_op (const Scalar *x_in, Scalar *y_out) const
 
Index rows () const
 
void set_shift (const Scalar &sigma)
 
 SymGEigsBucklingOp (OpType &op, const BOpType &Bop)
 
 SymGEigsBucklingOp (SymGEigsBucklingOp &&other)
 

Private Types

using Index = Eigen::Index
 
using Vector = Eigen::Matrix< Scalar, Eigen::Dynamic, 1 >
 

Private Attributes

const BOpType & m_Bop
 
Vector m_cache
 
OpType & m_op
 

Detailed Description

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
class Spectra::SymGEigsBucklingOp< OpType, BOpType >

This class defines the matrix operation for generalized eigen solver in the buckling mode. It computes $y=(K-\sigma K_G)^{-1}Kx$ for any vector $x$, where $K$ is positive definite, $K_G$ is symmetric, and $\sigma$ is a real shift. This class is intended for internal use.

Definition at line 28 of file SymGEigsBucklingOp.h.

Member Typedef Documentation

◆ Index

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
using Spectra::SymGEigsBucklingOp< OpType, BOpType >::Index = Eigen::Index
private

Definition at line 34 of file SymGEigsBucklingOp.h.

◆ Scalar

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
using Spectra::SymGEigsBucklingOp< OpType, BOpType >::Scalar = typename OpType::Scalar

Definition at line 31 of file SymGEigsBucklingOp.h.

◆ Vector

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
using Spectra::SymGEigsBucklingOp< OpType, BOpType >::Vector = Eigen::Matrix<Scalar, Eigen::Dynamic, 1>
private

Definition at line 35 of file SymGEigsBucklingOp.h.

Constructor & Destructor Documentation

◆ SymGEigsBucklingOp() [1/2]

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
Spectra::SymGEigsBucklingOp< OpType, BOpType >::SymGEigsBucklingOp ( OpType &  op,
const BOpType &  Bop 
)
inline

Constructor to create the matrix operation object.

Parameters
opThe $(K-\sigma K_G)^{-1}$ matrix operation object.
BopThe $K$ matrix operation object.

Definition at line 48 of file SymGEigsBucklingOp.h.

◆ SymGEigsBucklingOp() [2/2]

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
Spectra::SymGEigsBucklingOp< OpType, BOpType >::SymGEigsBucklingOp ( SymGEigsBucklingOp< OpType, BOpType > &&  other)
inline

Move constructor.

Definition at line 55 of file SymGEigsBucklingOp.h.

Member Function Documentation

◆ cols()

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
Index Spectra::SymGEigsBucklingOp< OpType, BOpType >::cols ( ) const
inline

Return the number of columns of the underlying matrix.

Definition at line 69 of file SymGEigsBucklingOp.h.

◆ perform_op()

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
void Spectra::SymGEigsBucklingOp< OpType, BOpType >::perform_op ( const Scalar x_in,
Scalar y_out 
) const
inline

Perform the matrix operation $y=(K-\sigma K_G)^{-1}Kx$.

Parameters
x_inPointer to the $x$ vector.
y_outPointer to the $y$ vector.

Definition at line 86 of file SymGEigsBucklingOp.h.

◆ rows()

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
Index Spectra::SymGEigsBucklingOp< OpType, BOpType >::rows ( ) const
inline

Return the number of rows of the underlying matrix.

Definition at line 65 of file SymGEigsBucklingOp.h.

◆ set_shift()

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
void Spectra::SymGEigsBucklingOp< OpType, BOpType >::set_shift ( const Scalar sigma)
inline

Set the real shift $\sigma$.

Definition at line 74 of file SymGEigsBucklingOp.h.

Member Data Documentation

◆ m_Bop

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
const BOpType& Spectra::SymGEigsBucklingOp< OpType, BOpType >::m_Bop
private

Definition at line 38 of file SymGEigsBucklingOp.h.

◆ m_cache

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
Vector Spectra::SymGEigsBucklingOp< OpType, BOpType >::m_cache
mutableprivate

Definition at line 39 of file SymGEigsBucklingOp.h.

◆ m_op

template<typename OpType = SymShiftInvert<double>, typename BOpType = SparseSymMatProd<double>>
OpType& Spectra::SymGEigsBucklingOp< OpType, BOpType >::m_op
private

Definition at line 37 of file SymGEigsBucklingOp.h.


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


gtsam
Author(s):
autogenerated on Wed May 28 2025 03:15:49