libFirm
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

◆ firm_gaussjordansolve()

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