LinearSystem Class Reference

System of linear equations. More...

#include <matrix.hpp>

List of all members.

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_tgetRow (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_tgetResults (size_t i=0) const
void print ()
void clear ()
 Clear all cells to 0.


Detailed Description

System of linear equations.

Definition at line 29 of file matrix.hpp.


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

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]

Row consists of n coefficents plus k b-values.

Definition at line 44 of file matrix.hpp.

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.


The documentation for this class was generated from the following file:
Generated on Thu Dec 6 20:31:16 2007 for Ephi by  doxygen 1.5.0