#include <CGAL/Default_diagonalize_traits.h>
template<typename FT, unsigned int dim = 3>
class CGAL::Default_diagonalize_traits< FT, dim >
The class Default_diagonalize_traits
is a wrapper designed to automatically use Eigen_diagonalize_traits
if Eigen is available and otherwise use the fallback Diagonalize_traits
class of CGAL.
- Template Parameters
-
FT | Number type |
dim | Dimension of the matrices and vectors |
- Is Model Of:
DiagonalizeTraits
◆ diagonalize_selfadjoint_covariance_matrix() [1/2]
template<typename FT , unsigned int dim = 3>
Fill eigenvalues
with the eigenvalues of the covariance matrix represented by cov
.
Eigenvalues are sorted by increasing order.
- Returns
true
if the operation was successful and false
otherwise.
◆ diagonalize_selfadjoint_covariance_matrix() [2/2]
template<typename FT , unsigned int dim = 3>
Fill eigenvalues
with the eigenvalues and eigenvectors
with the eigenvectors of the covariance matrix represented by cov
.
Eigenvalues are sorted by increasing order.
- Returns
true
if the operation was successful and false
otherwise.
◆ extract_largest_eigenvector_of_covariance_matrix()
template<typename FT , unsigned int dim = 3>
Extract the eigenvector associated to the largest eigenvalue of the covariance matrix represented by cov
.
- Returns
true
if the operation was successful and false
otherwise.