tfel
Loading...
Searching...
No Matches
tmatrix.ixx File Reference

Classes

struct  tfel::math::internals::DerivativeViewFromTinyMatrixImplementation< is_function_type_scalar, is_variable_type_scalar, FunctionType, VariableType >
 an helper structure to build a view on derivative from a tiny matrix. More...
struct  tfel::math::internals::DerivativeViewFromTinyMatrixImplementation< true, false, FunctionType, VariableType >
 partial specialization if the function type is a scalar. More...
struct  tfel::math::internals::DerivativeViewFromTinyMatrixImplementation< false, true, FunctionType, VariableType >
 partial specialization if the variable type is a scalar. More...
struct  tfel::math::internals::DerivativeViewFromTinyMatrixImplementation< true, true, FunctionType, VariableType >
 partial specialization if the function type and the variable type are scalars. More...

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.
namespace  tfel::math::internals
 This namespace contains classes, functions, metafunctions and data structures that are used internally in the tfel::math namespace and that are meant to be used by the end user.

Functions

template<typename MathObjectType>
constexpr unsigned short tfel::math::internals::getDerivativeSubBlockExtent ()
 return the number of components of a scalar (1) or of a tensorial object (the size of its array policy), i.e. the number of rows or columns of a derivative sub-block in its base matrix.
template<MatrixConcept MatrixType>
TFEL_HOST_DEVICE constexpr auto tfel::math::internals::det2 (const MatrixType &m) noexcept
template<MatrixConcept MatrixType>
TFEL_HOST_DEVICE constexpr auto tfel::math::internals::det3 (const MatrixType &m) noexcept
template<unsigned short N, unsigned short M, typename T>
constexpr tmatrix< M, N, T > tfel::math::transpose (const tmatrix< N, M, T > &m)
template<typename T, typename Operation>
constexpr auto tfel::math::det (const Expr< tmatrix< 2, 2, T >, Operation > &m)
template<typename T>
constexpr auto tfel::math::det (const tmatrix< 2, 2, T > &m)
template<typename T, typename Operation>
constexpr auto tfel::math::det (const Expr< tmatrix< 3, 3, T >, Operation > &m)
template<typename T>
constexpr auto tfel::math::det (const tmatrix< 3, 3, T > &m)
template<unsigned short I, unsigned short J, typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
constexpr derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative (tmatrix< N, M, base_type< numeric_type< derivative_type< FunctionType, VariableType > > > > &m)
 an helper function to create a derivative view from a tiny matrix
template<typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
constexpr derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative (tmatrix< N, M, base_type< numeric_type< derivative_type< FunctionType, VariableType > > > > &m, const unsigned short i, const unsigned short j)
 an helper function to create a derivative view from a tiny matrix
template<unsigned short I, unsigned short J, typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
TFEL_HOST_DEVICE constexpr strided_derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative_strided (base_type< numeric_type< derivative_type< FunctionType, VariableType > > > *const, const std::size_t)
 an helper function to create a strided derivative view from a structure of arrays memory area.
template<typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
TFEL_HOST_DEVICE constexpr strided_derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative_strided (base_type< numeric_type< derivative_type< FunctionType, VariableType > > > *const, const std::size_t, const unsigned short, const unsigned short)
 an helper function to create a strided derivative view from a structure of arrays memory area.
template<unsigned short I, unsigned short J, typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
TFEL_HOST_DEVICE constexpr scattered_derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative_scattered (const std::array< base_type< numeric_type< derivative_type< FunctionType, VariableType > > > *, N *M > &p)
 an helper function to create a scattered derivative view from the pointers to the components of a matrix.
template<typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
TFEL_HOST_DEVICE constexpr scattered_derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative_scattered (const std::array< base_type< numeric_type< derivative_type< FunctionType, VariableType > > > *, N *M > &p, const unsigned short, const unsigned short)
 an helper function to create a scattered derivative view from the pointers to the components of a matrix.
template<unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr tvector< N, T > tfel::math::change_basis (const tvector< N, T > &, const rotation_matrix< T > &) noexcept
 rotate a vector using a rotation matrix.

Detailed Description

Author
Thomas Helfer
Date
28 Jun 2006