libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
crn::LinearSystem Namespace Reference

Solvers for systems of linear equations. More...

Functions

MatrixDouble Cramer (const SquareMatrixDouble &Coefficients, const MatrixDouble &ConstantTerms)
 Resolution of linear equation system by the determinant method. More...
 
MatrixDouble GaussJordan (const SquareMatrixDouble &Coefficients, const MatrixDouble &ConstantTerms)
 Resolution of linear equation system by the pivot method. More...
 

Detailed Description

Solvers for systems of linear equations.

Solvers for systems of linear equations

Author
Jean DUONG
Date
March 2013
Version
0.2
Todo:
Cholesky, LU decomposition, etc.

Function Documentation

MatrixDouble crn::LinearSystem::Cramer ( const SquareMatrixDouble Coefficients,
const MatrixDouble ConstantTerms 
)

Resolution of linear equation system by the determinant method.

Solve linear system using Cramer procedure

Exceptions
ExceptionDimensionincompatible matrix dimensions
ExceptionRuntimeEquation has either no solution or an infinity of solutions
Parameters
[in]Coefficientsmatrix of equations' coefficients
[in]ConstantTermscolumn matrix of constant term
Returns
solutions packed in a column matrix (SMatrixDouble)

Definition at line 42 of file CRNEquationSolver.cpp.

MatrixDouble crn::LinearSystem::GaussJordan ( const SquareMatrixDouble Coefficients,
const MatrixDouble ConstantTerms 
)

Resolution of linear equation system by the pivot method.

Solve linear system using Gauss-Jordan procedure

Exceptions
ExceptionDimensionincompatible matrix dimensions
ExceptionRuntimeEquation has either no solution or an infinity of solutions
Parameters
[in]Coefficientsmatrix of equations' coefficients
[in]ConstantTermscolumn matrix of constant terms
Returns
solutions packed in a column matrix (SMatrixDouble)

Definition at line 92 of file CRNEquationSolver.cpp.