Easy3D 2.5.3
EigenSolver< FT > Class Template Reference

An easy-to-use eigen solver. More...

#include <easy3d/core/eigen_solver.h>

Public Types

enum  SortingMethod { NO_SORTING , INCREASING , DECREASING }
 The sorting method for the eigenvalues and their corresponding eigen vectors.
 

Public Member Functions

 EigenSolver (int n)
 Default constructor. More...
 
void solve (FT **mat, SortingMethod sm=NO_SORTING)
 Computes the eigenvalues and eigenvectors of the input matrix mat. More...
 
FT eigen_value (int i) const
 Returns the i_th eigenvalue.
 
FT eigen_vector (int comp, int i) const
 Returns the comp_th component of the i_th eigenvector.
 
FT * eigen_values ()
 Returns the eigenvalues.
 
FT ** eigen_vectors ()
 Returns the eigenvectors (stored as the columns of the returned matrix).
 

Detailed Description

template<typename FT>
class easy3d::EigenSolver< FT >

An easy-to-use eigen solver.

Constructor & Destructor Documentation

◆ EigenSolver()

EigenSolver ( int  n)
explicit

Default constructor.

Parameters
nthe size of the input matrix

Member Function Documentation

◆ solve()

void solve ( FT **  mat,
SortingMethod  sm = NO_SORTING 
)
inline

Computes the eigenvalues and eigenvectors of the input matrix mat.

Parameters
matthe input matrix (row major 2D array)

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