#include <vcg/math/base.h>
#include <vcg/math/matrix44.h>
#include <algorithm>
Go to the source code of this file.
Namespaces | |
namespace | vcg |
* | |
Enumerations | |
enum | vcg::SortingStrategy { vcg::LeaveUnsorted = 0, vcg::SortAscending = 1, vcg::SortDescending = 2 } |
Functions | |
template<typename MATRIX_TYPE , typename POINT_TYPE > | |
static void | vcg::Jacobi (MATRIX_TYPE &w, POINT_TYPE &d, MATRIX_TYPE &v, int &nrot) |
template<typename MATRIX_TYPE > | |
static void | vcg::JacobiRotate (MATRIX_TYPE &A, typename MATRIX_TYPE::ScalarType s, typename MATRIX_TYPE::ScalarType tau, int i, int j, int k, int l) |
template<typename TYPE > | |
static TYPE | vcg::pythagora (TYPE a, TYPE b) |
template<typename TYPE > | |
static TYPE | vcg::sign (TYPE a, TYPE b) |
template<typename MATRIX_TYPE > | |
static void | vcg::SingularValueBacksubstitution (const MATRIX_TYPE &U, const typename MATRIX_TYPE::ScalarType *W, const MATRIX_TYPE &V, typename MATRIX_TYPE::ScalarType *x, const typename MATRIX_TYPE::ScalarType *b) |
template<typename MATRIX_TYPE > | |
static bool | vcg::SingularValueDecomposition (MATRIX_TYPE &A, typename MATRIX_TYPE::ScalarType *W, MATRIX_TYPE &V, const SortingStrategy sorting=LeaveUnsorted, const int max_iters=30) |
template<typename MATRIX_TYPE > | |
void | vcg::Sort (MATRIX_TYPE &U, typename MATRIX_TYPE::ScalarType W[], MATRIX_TYPE &V, const SortingStrategy sorting) |
template<typename MATRIX_TYPE , typename POINT_TYPE > | |
void | vcg::SortEigenvaluesAndEigenvectors (POINT_TYPE &eigenvalues, MATRIX_TYPE &eigenvectors, bool absComparison=false) |
template<typename TYPE > | |
static TYPE | vcg::sqr (TYPE a) |