An easy-to-use eigen solver.
More...
#include <easy3d/core/eigen_solver.h>
|
enum | SortingMethod { NO_SORTING
, INCREASING
, DECREASING
} |
| The sorting method for the eigenvalues and their corresponding eigen vectors.
|
|
|
| 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).
|
|
template<typename FT>
class easy3d::EigenSolver< FT >
An easy-to-use eigen solver.
◆ EigenSolver()
Default constructor.
- Parameters
-
n | the size of the input matrix |
◆ solve()
Computes the eigenvalues and eigenvectors of the input matrix mat
.
- Parameters
-
mat | the input matrix (row major 2D array) |
The documentation for this class was generated from the following file: