Files Classes Functions Hierarchy
#include <mathlib.h>
Static Public Member Functions | |
| template<typename T > | |
| static T const | calcD2 (T const a00, T const a01, T const a10, T const a11) |
| Calculate the determinant of a two by two matrix. | |
| template<typename T > | |
| static T const | calcD3 (T const a00, T const a01, T const a02, T const a10, T const a11, T const a12, T const a20, T const a21, T const a22) |
| Calculate the determinant of a three by three matrix. | |
Definition at line 320 of file mathlib.h.
| static T const determinant::calcD2 | ( | T const | a00, | |
| T const | a01, | |||
| T const | a10, | |||
| T const | a11 | |||
| ) | [inline, static] |
Calculate the determinant of a two by two matrix.
Definition at line 327 of file mathlib.h.
Referenced by test06().
| static T const determinant::calcD3 | ( | T const | a00, | |
| T const | a01, | |||
| T const | a02, | |||
| T const | a10, | |||
| T const | a11, | |||
| T const | a12, | |||
| T const | a20, | |||
| T const | a21, | |||
| T const | a22 | |||
| ) | [inline, static] |
Calculate the determinant of a three by three matrix.
Definition at line 338 of file mathlib.h.
00349 { return 00350 a00*(a11*a22-a12*a21) - 00351 a01*(a10*a22-a12*a20) + 00352 a02*(a10*a21-a11*a20); }
1.5.8