Chemical Data Processing Library C++ API - Version 1.4.0
Namespaces | Functions
LinearSolve.hpp File Reference

Functions for solving linear equations. More...

#include "CDPL/Math/CommonType.hpp"

Go to the source code of this file.

Namespaces

 CDPL
 The namespace of the Chemical Data Processing Library.
 
 CDPL::Math
 Contains classes and functions related to mathematics.
 

Functions

template<typename E1 , typename E2 >
bool CDPL::Math::solveLower (const MatrixExpression< E1 > &l, VectorExpression< E2 > &bv)
 Solves \( L\,x = b \) in place by forward-substitution, where l is a lower-triangular matrix. More...
 
template<typename E1 , typename E2 >
bool CDPL::Math::solveUnitLower (const MatrixExpression< E1 > &l, VectorExpression< E2 > &bv)
 Solves \( L\,x = b \) in place by forward-substitution, where l is a unit lower-triangular matrix (1 on the diagonal). More...
 
template<typename E1 , typename E2 >
bool CDPL::Math::solveLower (const MatrixExpression< E1 > &l, MatrixExpression< E2 > &bm)
 Solves \( L\,X = B \) in place column-wise by forward-substitution, where l is a lower-triangular matrix. More...
 
template<typename E1 , typename E2 >
bool CDPL::Math::solveUnitLower (const MatrixExpression< E1 > &l, MatrixExpression< E2 > &bm)
 Solves \( L\,X = B \) in place column-wise by forward-substitution, where l is a unit lower-triangular matrix. More...
 
template<typename E1 , typename E2 >
bool CDPL::Math::solveUpper (const MatrixExpression< E1 > &u, VectorExpression< E2 > &bv)
 Solves \( U\,x = b \) in place by back-substitution, where u is an upper-triangular matrix. More...
 
template<typename E1 , typename E2 >
bool CDPL::Math::solveUnitUpper (const MatrixExpression< E1 > &u, VectorExpression< E2 > &bv)
 Solves \( U\,x = b \) in place by back-substitution, where u is a unit upper-triangular matrix (1 on the diagonal). More...
 
template<typename E1 , typename E2 >
bool CDPL::Math::solveUpper (const MatrixExpression< E1 > &u, MatrixExpression< E2 > &bm)
 Solves \( U\,X = B \) in place column-wise by back-substitution, where u is an upper-triangular matrix. More...
 
template<typename E1 , typename E2 >
bool CDPL::Math::solveUnitUpper (const MatrixExpression< E1 > &u, MatrixExpression< E2 > &bm)
 Solves \( U\,X = B \) in place column-wise by back-substitution, where u is a unit upper-triangular matrix. More...
 

Detailed Description

Functions for solving linear equations.