YANE-Framework 1.1.0
Public Member Functions | Protected Attributes | Static Protected Attributes

yane::EqSys::LinearEquations Class Reference

Class for solving linear equation problems.

Inheritance diagram for yane::EqSys::LinearEquations:
[legend]

List of all members.

Public Member Functions

int dimensionColumns ()
 Method to obtain the column dimension of the system matrix.
int dimensionRows ()
 Method to obtain the row dimension of the system matrix.
void initialize (double *A, int dimensionRows, int dimensionColumns, double *b, int dimensionB)
 Method to initialize the linear equation problem.
void initializeLargescale (double **A, int dimensionRows, int dimensionColumns, double *b, int dimensionB)
 Method to initialize the linear equation problem.
 LinearEquations ()
 Constructor.
virtual void solve (double *x)=0
 Method to solve the linear equation problem.
 ~LinearEquations ()
 Destructor.

Protected Attributes

double * _A
 System matrix stored by line in a large vector.
double ** _A_largescale
 System matrix with double pointers for large scale matrices.
double * _b
 Data vector of the problem.
int _dimensionB
 Dimension of data vector.
int _dimensionColumns
 Column dimension of the system matrix.
int _dimensionRows
 Row dimension of the system matrix.
bool _initialized
 Decision variable on initialization status of the linear equation problem.
bool _largescale
 Decision variable whether large scale solution methods shall be used.

Static Protected Attributes

static const double _epsilon = 1e-12
 Constant to check for numerical singularity of the system matrix.

Member Function Documentation

LIB_EXPORT int yane::EqSys::LinearEquations::dimensionColumns ( )

Method to obtain the column dimension of the system matrix

Returns:
Column dimension of the system matrix
LIB_EXPORT int yane::EqSys::LinearEquations::dimensionRows ( )

Method to obtain the row dimension of the system matrix

Returns:
Row dimension of the system matrix
LIB_EXPORT void yane::EqSys::LinearEquations::initialize ( double *  A,
int  dimensionRows,
int  dimensionColumns,
double *  b,
int  dimensionB 
)

Method to initialize the linear equation problem

Parameters:
ASystem matrix
dimensionRowsRow dimension of the system matrix
dimensionColumnsColumn dimension of the system matrix
bData vector of the problem
dimensionBDimension of the data vector
Exceptions:
ValueExceptionis thrown if row dimension of the matrix and dimension of the data vector are not identical
LIB_EXPORT void yane::EqSys::LinearEquations::initializeLargescale ( double **  A,
int  dimensionRows,
int  dimensionColumns,
double *  b,
int  dimensionB 
)

Method to initialize the linear equation problem

Parameters:
ASystem matrix
dimensionRowsRow dimension of the system matrix
dimensionColumnsColumn dimension of the system matrix
bData vector of the problem
dimensionBDimension of the data vector
Exceptions:
ValueExceptionis thrown if row dimension of the matrix and dimension of the data vector are not identical
virtual void yane::EqSys::LinearEquations::solve ( double *  x) [pure virtual]

Method to solve the linear equation problem

Parameters:
xSolution vector of the problem

Implemented in yane::EqSys::Cholesky, yane::EqSys::DirectMethods, yane::EqSys::GaussSeidel, yane::EqSys::IterativeMethods, and yane::EqSys::Jacobi.