#include <matrix.hpp>
Public Member Functions | |
LinearSystem (size_t n, size_t k=1) | |
Constructs a linear system with n unknowns, n equations and k b-values. | |
~LinearSystem () | |
bool | solveGJ () |
Solve the linear system using Gauss-Jordan elimination technique with partial pivoting. | |
bool | solveGBS () |
Solve the linear system using Gauss-Jordan elimination technique with partial pivoting. | |
prec_t * | getRow (size_t i) |
Row consists of n coefficents plus k b-values. | |
prec_t ** | getRows () |
size_t | getN () const |
size_t | getK () const |
const prec_t * | getResults (size_t i=0) const |
void | print () |
void | clear () |
Clear all cells to 0. |
Definition at line 29 of file matrix.hpp.
LinearSystem::LinearSystem | ( | size_t | n, | |
size_t | k = 1 | |||
) |
Constructs a linear system with n unknowns, n equations and k b-values.
The result will contain k sets of values.
LinearSystem::~LinearSystem | ( | ) |
bool LinearSystem::solveGJ | ( | ) |
Solve the linear system using Gauss-Jordan elimination technique with partial pivoting.
bool LinearSystem::solveGBS | ( | ) |
Solve the linear system using Gauss-Jordan elimination technique with partial pivoting.
prec_t* LinearSystem::getRow | ( | size_t | i | ) | [inline] |
prec_t** LinearSystem::getRows | ( | ) | [inline] |
Definition at line 45 of file matrix.hpp.
size_t LinearSystem::getN | ( | ) | const [inline] |
Definition at line 46 of file matrix.hpp.
size_t LinearSystem::getK | ( | ) | const [inline] |
Definition at line 47 of file matrix.hpp.
const prec_t* LinearSystem::getResults | ( | size_t | i = 0 |
) | const [inline] |
Definition at line 49 of file matrix.hpp.
void LinearSystem::print | ( | ) |
void LinearSystem::clear | ( | ) |
Clear all cells to 0.