proj home

Files   Classes   Functions   Hierarchy  

determinant Class Reference

Determinant calculations. More...

#include <mathlib.h>

List of all members.

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.


Detailed Description

Determinant calculations.

Definition at line 320 of file mathlib.h.


Member Function Documentation

template<typename T >
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().

00333     { return a00*a11-a01*a10; }

template<typename T >
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); }


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:49:55 2011 for Chelton Evans Source by  doxygen 1.5.8