TBCI Numerical high perf. C++ Library 2.8.0
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

autotoc_md4

Version
Id
gauss_jordan.h,v 1.14.2.13 2022/11/03 17:28:12 garloff Exp

Definition in file gauss_jordan.h.

Macro Definition Documentation

◆ GJ_MINVAL

#define GJ_MINVAL   1e-16

Definition at line 23 of file gauss_jordan.h.

Referenced by gaussj().

◆ HVAL

#define HVAL   1e38

Definition at line 28 of file gauss_jordan.h.

Referenced by gaussj().

Function Documentation

◆ gaussj()

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, err, fabs(), gaussj(), GJ_MINVAL, HVAL, i, MATH__, REGISTER, STD__, and T.

Referenced by Matrix< T >::FGD, BdMatrix< T >::FGDT, and gaussj().