TBCI Numerical high perf. C++ Library  2.8.0
Macros | Functions
gauss_jordan.h File Reference

gauss-jordan solver for linear systems TBCI::gaussj More...

#include "tbci/basics.h"
#include "tbci/matrix.h"
Include dependency graph for gauss_jordan.h:

Go to the source code of this file.

Macros

#define GJ_MINVAL   1e-16
 
#define HVAL   1e38
 

Functions

template<typename T >
NAMESPACE_TBCI char gaussj (Matrix< T > &a, Matrix< T > &b)
 

Detailed Description

gauss-jordan solver for linear systems TBCI::gaussj


Author
Attila M. Bilgic
Date
5/97

Definition in file gauss_jordan.h.

Macro Definition Documentation

#define GJ_MINVAL   1e-16

Definition at line 23 of file gauss_jordan.h.

Referenced by gaussj().

#define HVAL   1e38

Definition at line 28 of file gauss_jordan.h.

Referenced by gaussj().

Function Documentation

template<typename T >
NAMESPACE_TBCI char gaussj ( Matrix< T > &  a,
Matrix< T > &  b 
)
Parameters
asquare n*n Matrix
bn*m Matrix, containing the Vectors to solve for

gauss-jordan linear algebraic equation solver with pivoting; Num.Rec. p.39

Returns
a is inverted Matrix, b contains solution Vectors
Note
The Matrices passed will be changed!

Definition at line 46 of file gauss_jordan.h.

References a, b, BCHK, TMatrix< T >::col, err, std::fabs(), GJ_MINVAL, HVAL, i, MATH__, REGISTER, TMatrix< T >::row, STD__, TBCI::SWAP(), T, v, and z.

Referenced by lev_mar(), and LM_fit_2D().