philsupertramp/game-math
Loading...
Searching...
No Matches
Functions
gaussSeidel.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 > gaussSeidel (const Matrix< double > &A, const Matrix< double > &b)
 

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

◆ gaussSeidel()

Matrix< double > gaussSeidel ( const Matrix< double > &  A,
const Matrix< double > &  b 
)

Gauss-Seidel algorithm to evaluate system of linear equations.

$$Ax = b$$

Parameters
ACoefficient matrix
bresulting vector
Returns
$$x$$
Examples
numerics/lin_alg/TestGaussSeidel.cpp.