vm_math
1.0.7
|
#include <vm_math/vm_m3math.h>
Public Types | |
typedef T_fp | value_type |
![]() | |
typedef T_fp | value_type |
Static Public Member Functions | |
static int | at (int i, int j) |
static void | init_by_row (T_fp m[], T_fp const row0[], T_fp const row1[], T_fp const row2[]) |
static void | init_by_col (T_fp m[], T_fp const col0[], T_fp const col1[], T_fp const col2[]) |
static void | dyad_product (T_fp m[], T_fp const v1[], T_fp const v2[]) |
static void | inject_row (T_fp m[], T_fp const row[], int whichrow) |
static void | inject_col (T_fp m[], T_fp const col[], int whichcol) |
static void | extract_row (T_fp const m[], T_fp row[], int whichrow) |
static void | extract_col (T_fp const m[], T_fp col[], int whichcol) |
static void | mvmult (T_fp res[], T_fp const m[], T_fp const v[]) |
static void | mtvmult (T_fp res[], T_fp const m[], T_fp const v[]) |
static void | mmult (T_fp mres[], T_fp const m1[], T_fp const m2[]) |
static std::ostream & | print_on (std::ostream &os, T_fp const m[], char const prefix[]="", char const postfix[]="") |
static void | cprint_on (FILE *of, T_fp const m[], char const prefix[]="", char const postfix[]="") |
![]() | |
static void | copy (T_fp v[], T_fp const cv[]) |
static void | set (T_fp v[], T_fp r) |
static void | add_eq (T_fp v[], T_fp const cv[]) |
static void | add_eq (T_fp v[], T_fp r) |
static void | sub_eq (T_fp v[], T_fp const cv[]) |
static void | sub_eq (T_fp v[], T_fp r) |
static void | mul_eq (T_fp v[], T_fp const cv[]) |
static void | mul_eq (T_fp v[], T_fp r) |
static void | div_eq (T_fp v[], T_fp const cv[]) |
static void | div_eq (T_fp v[], T_fp r) |
static void | negate (T_fp v[]) |
static void | add (T_fp v[], T_fp const cv1[], T_fp const cv2[]) |
static void | add (T_fp v[], T_fp const cv[], T_fp r) |
static void | add (T_fp v[], T_fp r, T_fp const cv[]) |
static void | sub (T_fp v[], T_fp const cv1[], T_fp const cv2[]) |
static void | sub (T_fp v[], T_fp const cv[], T_fp r) |
static void | sub (T_fp v[], T_fp r, T_fp const cv[]) |
static void | mul (T_fp v[], T_fp const cv1[], T_fp const cv2[]) |
static void | mul (T_fp v[], T_fp const cv[], T_fp r) |
static void | mul (T_fp v[], T_fp r, T_fp const cv[]) |
static void | div (T_fp v[], T_fp const cv1[], T_fp const cv2[]) |
static void | div (T_fp v[], T_fp const cv[], T_fp r) |
static void | div (T_fp v[], T_fp r, T_fp const cv[]) |
static void | lincomb (T_fp res[], T_fp c1, T_fp const v1[], T_fp c2, T_fp const v2[]) |
static std::ostream & | print_on (std::ostream &os, T_fp const v[], int by, char const prefix[]="", char const postfix[]="") |
static void | cprint_on (FILE *of, T_fp const v[], int by, char const prefix[]="", char const postfix[]="") |
A template class providing common numerical operations on 3x3-matrices of T_fp's (floating point type). The matrix is assumed to be stored as a * contiguous one-dimensional array of 9 T_fp's, properly aligned for type T_fp.
The class is a simple class to handle common numerical operations on 3x3-matrices
of floating point T_fps.
Unless otherwise noted, the operations are component by component, e.g.,
mul_eq(m1,m2)
results in
m1[i][j] += m2[i][j], where i = 0,1,2 and j = 0,1,2.
vm_M3Math has only static member functions; there are no data members.
Where possible, the static member functions are inlined.
Definition at line 77 of file vm_m3math.h.