wn_solve_system3
Matrix inversion
Part of wnminv(3).
Usage
double *mat,int
len_i,int
iterations)
double *rhs,double
**mat_inverse,double
**mat,
int len,int
iterations)
Overview
wn_invert_mat performs an in-place invert of mat.
Resources
Inverting a matrix requires
WORST and AVERAGE CASE:
time = len_i^3
stack memory = 1
dynamic memory = len_i
where the matrix to be inverted is a len_i*len_i matrix.
Diagnostics
code == WN_SUCCESS for successful inversion.
code == WN_SINGULAR for singular matrix.