ARPACK-Armadillo
|
#include <TridiagEigen.h>
Public Member Functions | |
TridiagEigen () | |
TridiagEigen (const Matrix &mat) | |
void | compute (const Matrix &mat) |
Vector | eigenvalues () |
Matrix | eigenvectors () |
Calculate the eigenvalues and eigenvectors of a symmetric tridiagonal matrix.
Scalar | The element type of the matrix. Currently supported types are float and double . |
This class is a wrapper of the Lapack functions _steqr
.
Definition at line 25 of file TridiagEigen.h.
|
inline |
Default constructor. Computation can be performed later by calling the compute() method.
Definition at line 43 of file TridiagEigen.h.
|
inline |
Constructor to create an object that calculates the eigenvalues and eigenvectors of a symmetric tridiagonal matrix mat
.
mat | Matrix type can be arma::mat or arma::fmat , depending on the template parameter Scalar defined. Only the main diagonal and the lower sub-diagonal parts of the matrix are used. |
Definition at line 56 of file TridiagEigen.h.
|
inline |
Compute the eigenvalue decomposition of a symmetric tridiagonal matrix.
mat | Matrix type can be arma::mat or arma::fmat , depending on the template parameter Scalar defined. Only the main diagonal and the lower sub-diagonal parts of the matrix are used. |
Definition at line 70 of file TridiagEigen.h.
|
inline |
Retrieve the eigenvalues.
arma::vec
or arma::fvec
, depending on the template parameter Scalar
defined. Definition at line 123 of file TridiagEigen.h.
|
inline |
Retrieve the eigenvectors.
arma::mat
or arma::fmat
, depending on the template parameter Scalar
defined. Definition at line 138 of file TridiagEigen.h.