libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Gauss Jordan Elimination

Solves a system of linear equations. More...

Functions

int firm_gaussjordansolve (double *matrix, double *result, unsigned n)
 Solves a system of linear equations. More...
 

Detailed Description

Solves a system of linear equations.

Function Documentation

int firm_gaussjordansolve ( double *  matrix,
double *  result,
unsigned  n 
)

Solves a system of linear equations.

Parameters
matrixthe linear equations as matrix (square matrix, n x n)
resultthe result vector, will contain the result if successful
nthe size of the equation system
Returns
0 if successful, -1 if ill-conditioned matrix