PER Firmware
Loading...
Searching...
No Matches
linear_algebra.h File Reference

Basic floating point vector and matrix types and operations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vec3_t
 
struct  mat3_t
 

Functions

vec3_t vec3_add (const vec3_t a, const vec3_t b)
 
vec3_t vec3_sub (const vec3_t a, const vec3_t b)
 
vec3_t vec3_scale (const vec3_t vec, float scalar)
 
float vec3_mag (const vec3_t vec)
 
vec3_t vec3_normalize (const vec3_t vec)
 
mat3_t mat3_add (const mat3_t *a, const mat3_t *b)
 
mat3_t mat3_sub (const mat3_t *a, const mat3_t *b)
 
mat3_t mat3_scale (const mat3_t *mat, float scalar)
 
mat3_t mat3_mult (const mat3_t *a, const mat3_t *b)
 
vec3_t mat3_mult_vec3 (const mat3_t *mat, const vec3_t *vec)
 
vec3_t mat3_column (const mat3_t *mat, int col_index)
 
mat3_t outer_product3 (const vec3_t a, const vec3_t b)
 
mat3_t symmetrization3 (const mat3_t *mat)
 
mat3_t cholesky3 (const mat3_t *mat)
 

Detailed Description

Basic floating point vector and matrix types and operations.

! Please keep this library minimal and dumb

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ cholesky3()

mat3_t cholesky3 ( const mat3_t * mat)
Here is the caller graph for this function:

◆ mat3_add()

mat3_t mat3_add ( const mat3_t * a,
const mat3_t * b )
Here is the caller graph for this function:

◆ mat3_column()

vec3_t mat3_column ( const mat3_t * mat,
int col_index )
Here is the caller graph for this function:

◆ mat3_mult()

mat3_t mat3_mult ( const mat3_t * a,
const mat3_t * b )
Here is the caller graph for this function:

◆ mat3_mult_vec3()

vec3_t mat3_mult_vec3 ( const mat3_t * mat,
const vec3_t * vec )
Here is the caller graph for this function:

◆ mat3_scale()

mat3_t mat3_scale ( const mat3_t * mat,
float scalar )
Here is the caller graph for this function:

◆ mat3_sub()

mat3_t mat3_sub ( const mat3_t * a,
const mat3_t * b )
Here is the caller graph for this function:

◆ outer_product3()

mat3_t outer_product3 ( const vec3_t a,
const vec3_t b )
Here is the caller graph for this function:

◆ symmetrization3()

mat3_t symmetrization3 ( const mat3_t * mat)
Here is the caller graph for this function:

◆ vec3_add()

vec3_t vec3_add ( const vec3_t a,
const vec3_t b )
Here is the caller graph for this function:

◆ vec3_mag()

float vec3_mag ( const vec3_t vec)
Here is the caller graph for this function:

◆ vec3_normalize()

vec3_t vec3_normalize ( const vec3_t vec)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vec3_scale()

vec3_t vec3_scale ( const vec3_t vec,
float scalar )
Here is the caller graph for this function:

◆ vec3_sub()

vec3_t vec3_sub ( const vec3_t a,
const vec3_t b )
Here is the caller graph for this function: