tfel
Loading...
Searching...
No Matches
tfel::math::TinyMatrixSolveBase< N, T, use_exceptions, perform_runtime_checks > Struct Template Reference

#include </home/runner/work/tfel/tfel/include/TFEL/Math/TinyMatrixSolve.hxx>

Inheritance diagram for tfel::math::TinyMatrixSolveBase< N, T, use_exceptions, perform_runtime_checks >:
tfel::math::TinyMatrixSolve< 1u, T, use_exceptions, perform_runtime_checks > tfel::math::TinyMatrixSolve< 2u, T, use_exceptions, perform_runtime_checks > tfel::math::TinyMatrixSolve< 3u, T, use_exceptions, perform_runtime_checks >

Static Public Member Functions

template<MatrixConcept FixedSizeMatrixType>
static TFEL_HOST_DEVICE bool decomp (FixedSizeMatrixType &, TinyPermutation< N > &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions)
 LU decompose the given matrix.
template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType>
static TFEL_HOST_DEVICE bool back_substitute (const FixedSizeMatrixType &, const TinyPermutation< N > &, FixedSizeVectorType &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions)
 solve the linear system m.x = b once the matrix has been decomposed
template<unsigned short M>
static TFEL_HOST_DEVICE bool back_substitute (const tmatrix< N, N, T > &, const TinyPermutation< N > &, tmatrix< N, M, T > &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions)
 solve the linear system m.x = b once the matrix has been decomposed

Detailed Description

template<unsigned short N, typename T, bool use_exceptions, bool perform_runtime_checks>
struct tfel::math::TinyMatrixSolveBase< N, T, use_exceptions, perform_runtime_checks >

solve a linear problem using LU decomposition

Parameters
N: dimension of the system
T: numerical type

Member Function Documentation

◆ back_substitute() [1/2]

template<unsigned short N, typename T, bool use_exceptions, bool perfom_runtime_checks>
template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType>
TFEL_HOST_DEVICE bool tfel::math::TinyMatrixSolveBase< N, T, use_exceptions, perfom_runtime_checks >::back_substitute ( const FixedSizeMatrixType & m,
const TinyPermutation< N > & p,
FixedSizeVectorType & b,
const T eps = 100 * std::numeric_limits<T>::min() )
staticnoexcept

solve the linear system m.x = b once the matrix has been decomposed

Parameters
m: LU decomposition of a matrix
p: permutation vector
b: right member
eps: numerical parameter to detect null pivot

◆ back_substitute() [2/2]

template<unsigned short N, typename T, bool use_exceptions, bool perfom_runtime_checks>
template<unsigned short M>
TFEL_HOST_DEVICE bool tfel::math::TinyMatrixSolveBase< N, T, use_exceptions, perfom_runtime_checks >::back_substitute ( const tmatrix< N, N, T > & m,
const TinyPermutation< N > & p,
tmatrix< N, M, T > & b,
const T eps = 100 * std::numeric_limits<T>::min() )
staticnoexcept

solve the linear system m.x = b once the matrix has been decomposed

Parameters
m: LU decomposition of a matrix
p: permutation vector
b: right member
eps: numerical parameter to detect null pivot

◆ decomp()

template<unsigned short N, typename T, bool use_exceptions, bool perfom_runtime_checks>
template<MatrixConcept FixedSizeMatrixType>
TFEL_HOST_DEVICE bool tfel::math::TinyMatrixSolveBase< N, T, use_exceptions, perfom_runtime_checks >::decomp ( FixedSizeMatrixType & m,
TinyPermutation< N > & p,
const T eps = 100 * std::numeric_limits<T>::min() )
staticnoexcept

LU decompose the given matrix.

Parameters
m: matrix to be decomposed
p: permutation vector
eps: numerical parameter to detect null pivot

The documentation for this struct was generated from the following files: