![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Implementation of matrix LU-decomposition and associated operations. More...
#include <algorithm>#include "CDPL/Math/VectorProxy.hpp"#include "CDPL/Math/MatrixProxy.hpp"#include "CDPL/Math/LinearSolve.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 E > | |
| E::SizeType | CDPL::Math::luDecompose (MatrixExpression< E > &e) |
| Computes an in-place LU decomposition of the matrix e without partial pivoting. More... | |
| template<typename E , typename PV , typename T > | |
| E::SizeType | CDPL::Math::luDecompose (MatrixExpression< E > &e, PV &pv, T &num_row_swaps) |
| Computes an in-place LU decomposition of the matrix e with partial (row) pivoting. More... | |
| template<typename E , typename PV > | |
| void | CDPL::Math::swapRows (VectorExpression< E > &e, const PV &pv) |
| Applies the permutation vector pv to the vector expression e by swapping element i with element pv[i]. More... | |
| template<typename E , typename PV > | |
| void | CDPL::Math::swapRows (MatrixExpression< E > &e, const PV &pv) |
| Applies the permutation vector pv to the rows of the matrix expression e by swapping row i with row pv[i]. More... | |
| template<typename E1 , typename E2 > | |
| bool | CDPL::Math::luSubstitute (const MatrixExpression< E1 > &lu, VectorExpression< E2 > &b) |
| Solves \( LU\,x = b \) for b in place, given the LU decomposition lu (without pivoting). More... | |
| template<typename E1 , typename E2 , typename PV > | |
| bool | CDPL::Math::luSubstitute (const MatrixExpression< E1 > &lu, const PV &pv, VectorExpression< E2 > &b) |
| Solves \( LU\,x = b \) for b in place, given the LU decomposition lu and pivot vector pv. More... | |
| template<typename E1 , typename E2 > | |
| bool | CDPL::Math::luSubstitute (const MatrixExpression< E1 > &lu, MatrixExpression< E2 > &b) |
| Solves \( LU\,X = B \) for the matrix b in place, given the LU decomposition lu (without pivoting). More... | |
| template<typename E1 , typename E2 , typename PV > | |
| bool | CDPL::Math::luSubstitute (const MatrixExpression< E1 > &lu, const PV &pv, MatrixExpression< E2 > &b) |
| Solves \( LU\,X = B \) for the matrix b in place, given the LU decomposition lu and pivot vector pv. More... | |
Implementation of matrix LU-decomposition and associated operations.