ARPACK-Armadillo
DenseGenRealShiftSolve< Scalar > Class Template Reference

#include <DenseGenRealShiftSolve.h>

Public Member Functions

 DenseGenRealShiftSolve (Matrix &mat_)
 
int rows ()
 
int cols ()
 
void set_shift (Scalar sigma)
 
void perform_op (Scalar *x_in, Scalar *y_out)
 

Detailed Description

template<typename Scalar>
class DenseGenRealShiftSolve< Scalar >

This class defines the shift-solve operation on a general real matrix \(A\), i.e., calculating \(y=(A-\sigma I)^{-1}x\) for any real \(\sigma\) and vector \(x\). It is mainly used in the GenEigsRealShiftSolver eigen solver.

Definition at line 22 of file DenseGenRealShiftSolve.h.

Constructor & Destructor Documentation

template<typename Scalar >
DenseGenRealShiftSolve< Scalar >::DenseGenRealShiftSolve ( Matrix &  mat_)
inline

Constructor to create the matrix operation object.

Parameters
mat_An Armadillo matrix object, whose type can be arma::mat or arma::fmat, depending on the template parameter Scalar defined.

Definition at line 38 of file DenseGenRealShiftSolve.h.

Member Function Documentation

template<typename Scalar >
int DenseGenRealShiftSolve< Scalar >::rows ( )
inline

Return the number of rows of the underlying matrix.

Definition at line 49 of file DenseGenRealShiftSolve.h.

template<typename Scalar >
int DenseGenRealShiftSolve< Scalar >::cols ( )
inline

Return the number of columns of the underlying matrix.

Definition at line 53 of file DenseGenRealShiftSolve.h.

template<typename Scalar >
void DenseGenRealShiftSolve< Scalar >::set_shift ( Scalar  sigma)
inline

Set the real shift \(\sigma\).

Definition at line 58 of file DenseGenRealShiftSolve.h.

template<typename Scalar >
void DenseGenRealShiftSolve< Scalar >::perform_op ( Scalar *  x_in,
Scalar *  y_out 
)
inline

Perform the shift-solve operation \(y=(A-\sigma I)^{-1}x\).

Parameters
x_inPointer to the \(x\) vector.
y_outPointer to the \(y\) vector.

Definition at line 70 of file DenseGenRealShiftSolve.h.


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