philsupertramp/game-math
Loading...
Searching...
No Matches
Functions
gaussJordan.h File Reference
#include "../../Matrix.h"
#include "../../matrix_utils.h"
#include "LU.h"
#include "backwardSub.h"
#include "forwardSub.h"
#include <vector>

Go to the source code of this file.

Functions

Matrix< double > gaussJordan (const Matrix< double > &A)
 

Detailed Description

Gaussian elimination to solve systems of linear equations. Uses column major pivot elements to reduce number of operations.

Requires:

#include <math/numerics/lin_alg/gausseidel.h>

Function Documentation

◆ gaussJordan()

Matrix< double > gaussJordan ( const Matrix< double > &  A)

Gauss-Jordan algorithm to calculate inverse of given squared matrix.

Parameters
Asquared Coefficient matrix
Returns
$$A^{-1}$$
Examples
numerics/lin_alg/TestGaussSeidel.cpp.