programmer's documentation
Functions
cs_math.h File Reference
#include "cs_defs.h"
Include dependency graph for cs_math.h:

Go to the source code of this file.

Functions

void symmetric_matrix_inverse (const cs_real_6_t s, cs_real_6_t sout)
 
void symmetric_matrix_product (const cs_real_6_t s1, const cs_real_6_t s2, cs_real_6_t sout)
 
static void cs_math_33_3_product (const cs_real_33_t m, const cs_real_3_t v, cs_real_3_t mv)
 Compute the product of a matrix of 3x3 real values by a vector of 3 real values. More...
 
static void cs_math_sym_33_3_product (const cs_real_6_t m, const cs_real_3_t v, cs_real_3_t mv)
 Compute the product of a symmetric matrix of 3x3 real values by a vector of 3 real values. NB: Symmetric matrix are stored as follows (s11, s22, s33, s12, s23, s13) More...
 
static cs_real_t cs_math_3_dot_product (const cs_real_3_t u, const cs_real_3_t v)
 Compute the dot product of two vectors of 3 real values. More...
 
static cs_real_t cs_math_3_square_norm (const cs_real_3_t v)
 Compute the square norm of a vector of 3 real values. More...
 
static void cs_math_sym_33_inv_cramer (const cs_real_6_t s, cs_real_6_t sout)
 Compute the inverse of a symmetric matrix using Cramer's rule. NB: Symmetric matrix are stored as follows (s11, s22, s33, s12, s23, s13) More...
 
static void cs_math_sym_33_product (const cs_real_6_t s1, const cs_real_6_t s2, cs_real_6_t sout)
 Compute the product of two symmetric matrices. NB: Symmetric matrix are stored as follows (s11, s22, s33, s12, s23, s13) More...
 

Function Documentation

static void cs_math_33_3_product ( const cs_real_33_t  m,
const cs_real_3_t  v,
cs_real_3_t  mv 
)
inlinestatic

Compute the product of a matrix of 3x3 real values by a vector of 3 real values.

Parameters
[in]mmatrix of 3x3 real values
[in]vvector of 3 real values
[out]mvvector of 3 real values
static cs_real_t cs_math_3_dot_product ( const cs_real_3_t  u,
const cs_real_3_t  v 
)
inlinestatic

Compute the dot product of two vectors of 3 real values.

Parameters
[in]uvector of 3 real values
[in]vvector of 3 real values
Returns
the resulting dot product u.v.
static cs_real_t cs_math_3_square_norm ( const cs_real_3_t  v)
inlinestatic

Compute the square norm of a vector of 3 real values.

Parameters
[in]vvector of 3 real values
Returns
square norm of v.
static void cs_math_sym_33_3_product ( const cs_real_6_t  m,
const cs_real_3_t  v,
cs_real_3_t  mv 
)
inlinestatic

Compute the product of a symmetric matrix of 3x3 real values by a vector of 3 real values. NB: Symmetric matrix are stored as follows (s11, s22, s33, s12, s23, s13)

Parameters
[in]mmatrix of 3x3 real values
[in]vvector of 3 real values
[out]mvvector of 3 real values
static void cs_math_sym_33_inv_cramer ( const cs_real_6_t  s,
cs_real_6_t  sout 
)
inlinestatic

Compute the inverse of a symmetric matrix using Cramer's rule. NB: Symmetric matrix are stored as follows (s11, s22, s33, s12, s23, s13)

Parameters
[in]ssymmetric matrix
[out]soutsout = s1 * s2
static void cs_math_sym_33_product ( const cs_real_6_t  s1,
const cs_real_6_t  s2,
cs_real_6_t  sout 
)
inlinestatic

Compute the product of two symmetric matrices. NB: Symmetric matrix are stored as follows (s11, s22, s33, s12, s23, s13)

Parameters
[in]s1symmetric matrix
[in]s2symmetric matrix
[out]soutsout = s1 * s2
void symmetric_matrix_inverse ( const cs_real_6_t  s,
cs_real_6_t  sout 
)
void symmetric_matrix_product ( const cs_real_6_t  s1,
const cs_real_6_t  s2,
cs_real_6_t  sout 
)