wnminv(3)

wnminv3

Matrix inversion

Usage

#include <wn/wnmat.h>

wn_invert_mat(int &code,double **mat,int len_i)

wn_polish_inverse_mat(int &code,double **mat_inverse,
double *mat,int len_i,int iterations)

wn_solve_system(int &code,double *solution,
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.

Releases

Unchanged in 5 releases since Debian 2.1 (Slink).

  1. 2.1–4.0

Bugs

Cannot handle complex numbers, making these useless for many engineering applications.

Author

Will Naylor

From libwn-dev 6.0-17 in Debian 4.0 (Etch). Parsed by carta from the page's man source.