tfel
Loading...
Searching...
No Matches
tfel::math::TinyMatrixSolve< 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::TinyMatrixSolve< N, T, use_exceptions, perform_runtime_checks >:
tfel::math::TinyMatrixSolveBase< N, T, true, false >

Public Member Functions

template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType>
TFEL_HOST_DEVICE bool exe (const FixedSizeMatrixType &m, FixedSizeVectorType &b, const T eps) noexcept(!use_exceptions)
template<unsigned short M>
TFEL_HOST_DEVICE bool exe (const tmatrix< 1u, 1u, T > &m, tmatrix< 1u, M, T > &b, const T eps) noexcept(!use_exceptions)
template<unsigned short M>
TFEL_HOST_DEVICE bool exe (const tmatrix< 2u, 2u, T > &m, tmatrix< 2u, M, T > &b, const T eps) noexcept(!use_exceptions)
template<unsigned short M>
TFEL_HOST_DEVICE bool exe (const tmatrix< 3u, 3u, T > &m, tmatrix< 3u, M, T > &b, const T eps) noexcept(!use_exceptions)

Static Public Member Functions

template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType>
static TFEL_HOST_DEVICE bool exe (FixedSizeMatrixType &, FixedSizeVectorType &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions)
template<unsigned short M>
static TFEL_HOST_DEVICE bool exe (tmatrix< N, N, T > &m, tmatrix< N, M, T > &, const T=100 *std::numeric_limits< T >::min()) noexcept(!use_exceptions)
Static Public Member Functions inherited from tfel::math::TinyMatrixSolveBase< N, T, true, false >
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.
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

Detailed Description

template<unsigned short N, typename T, bool use_exceptions = true, bool perform_runtime_checks = false>
struct tfel::math::TinyMatrixSolve< 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

◆ exe() [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::TinyMatrixSolve< N, T, use_exceptions, perfom_runtime_checks >::exe ( FixedSizeMatrixType & m,
FixedSizeVectorType & b,
const T eps = 100 * std::numeric_limits<T>::min() )
staticnoexcept

solve the linear system m.x = b

Parameters
m: matrix to be inverted
b: right member
eps: numerical paramater to detect null pivot
Note
the matrix m is overwritten during computations
the right member is overwritten by the solution

◆ exe() [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::TinyMatrixSolve< N, T, use_exceptions, perfom_runtime_checks >::exe ( tmatrix< N, N, T > & m,
tmatrix< N, M, T > & b,
const T eps = 100 * std::numeric_limits<T>::min() )
staticnoexcept

solve the linear system m.x = b

Parameters
m: matrix to be inverted
b: right member
eps: numerical paramater to detect null pivot
Note
the matrix m is overwritten during computations
the right member is overwritten by the solution

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