vm_math  1.0.7
Initialize a matrix.

Functions

static void vm_M3Math< T_fp >::init_by_row (T_fp m[], T_fp const row0[], T_fp const row1[], T_fp const row2[])
 
static void vm_M3Math< T_fp >::init_by_col (T_fp m[], T_fp const col0[], T_fp const col1[], T_fp const col2[])
 
static void vm_M3Math< T_fp >::dyad_product (T_fp m[], T_fp const v1[], T_fp const v2[])
 

Detailed Description

Function Documentation

template<class T_fp >
void vm_M3Math< T_fp >::dyad_product ( T_fp  m[],
T_fp const  v1[],
T_fp const  v2[] 
)
inlinestatic

Initialize a matrix to a dyadic (outer) product of vectors

For each i, j: m[at(i,j)] = v1[i] * v2[j]

Parameters
mmatrix (as stored flat 1D array)
v11st vector
v22nd vector

Definition at line 361 of file vm_m3math.h.

template<class T_fp >
void vm_M3Math< T_fp >::init_by_col ( T_fp  m[],
T_fp const  col0[],
T_fp const  col1[],
T_fp const  col2[] 
)
inlinestatic

Initialize matrix by column; set columns of m to col0, col1, col2.

Parameters
mmatrix (as stored flat 1D array)
col01st column vector
col12nd column vector
col23rd column vector

Definition at line 308 of file vm_m3math.h.

template<class T_fp >
void vm_M3Math< T_fp >::init_by_row ( T_fp  m[],
T_fp const  row0[],
T_fp const  row1[],
T_fp const  row2[] 
)
inlinestatic

Initialize matrix by row; set rows of m to row0, row1, row2.

Parameters
mmatrix (as stored flat 1D array)
row01st row vector
row12nd row vector
row23rd row vector

Definition at line 298 of file vm_m3math.h.