Jolt Physics
A multi core friendly Game Physics Engine
|
#include <Jolt/Core/FPFlushDenormals.h>
Go to the source code of this file.
Macros | |
#define | JPH_EVS_ROTATE(a, i, j, k, l) |
Functions | |
template<class Vector , class Matrix > | |
JPH_NAMESPACE_BEGIN bool | EigenValueSymmetric (const Matrix &inMatrix, Matrix &outEigVec, Vector &outEigVal) |
#define JPH_EVS_ROTATE | ( | a, | |
i, | |||
j, | |||
k, | |||
l | |||
) |
JPH_NAMESPACE_BEGIN bool EigenValueSymmetric | ( | const Matrix & | inMatrix, |
Matrix & | outEigVec, | ||
Vector & | outEigVal | ||
) |
Function to determine the eigen vectors and values of a N x N real symmetric matrix by Jacobi transformations. This method is most suitable for N < 10.
Taken and adapted from Numerical Recipies paragraph 11.1
An eigen vector is a vector v for which \(A \: v = \lambda \: v\)
Where: A: A square matrix. \(\lambda\): a non-zero constant value.
Matrix is a matrix type, which has dimensions N x N.
inMatrix | is the matrix of which to return the eigenvalues and vectors |
outEigVec | will contain a matrix whose columns contain the normalized eigenvectors (must be identity before call) |
outEigVal | will contain the eigenvalues |