gml_ElMat2.h File Reference
Detailed Description
Basic operations on row-major 2x2 matrices and 2x1 vectors.
#include <math.h>
#include "gml/base/gml_Errors.h"
Go to the source code of this file.
|
Functions |
template<class T> |
static gml_TError | gml_EM2_Invert (T *source, T *dest) |
| Invert the source matrix in dest. source and dest may be indentical. Return an error if source is not invertible.
|
template<class T> |
static T | gml_EM2_Det (T *source) |
| Return the determinant of source.
|
template<class T> |
static void | gml_EM2_AddMat (T *a, T *b, T *dest) |
| Add the two matrix a and b and put the result in dest dest may be a or b.
|
template<class T> |
static void | gml_EM2_AddVect (T *a, T *b, T *dest) |
| Add the two vectors a and b and put the result in dest dest may be a or b.
|
template<class T> |
static void | gml_EM2_MultVect (T *a, T *b, T *dest) |
| Multiply matrix a anv vector b and put the result in dest dest may be a or b.
|
template<class T> |
static gml_TError | gml_EM2_EigenStuff (T *a, T *e, T *v) |
| Return in e the eigenvalues of matrix a. Largest value goes in first position. The corresponding eigenvectors are returned in v. v contains 2 values: v[0] is the 2nd component of eigenvector corresponding to eigenvalue e[0] (its first component is choosen as 1) v[1] corresponds to e[1].
|
template<class T> |
static gml_TError | gml_EM2_EigenVal (T *a, T *e) |
| Return in e the eigenvalues of matrix a. Largest value goes in first position.
|
template<class T> |
static gml_TError | gml_EM2_EigenVect (T *a, T *v) |
| Return in v the eigenvectors of matrix a. v contains 2 values: v[0] is the 2nd component of eigenvector corresponding to the largest eigenvalue (its first component is choosen as 1) v[1] corresponds to the smallest eigenvalue.
|
Generated on Tue Jun 12 14:03:28 2007 for gml by
Doxygen 1.5.2.
|