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

Classes

struct  tfel::math::internals::BuildDerivativeViewFromTinyMatrixImplementation< is_function_type_scalar, is_variable_type_scalar, M, FunctionType, VariableType >
 a metafunction returning a view type on a derivative in tiny matrix ordered of M columns. More...
struct  tfel::math::internals::BuildDerivativeViewFromTinyMatrixImplementation< true, false, M, FunctionType, VariableType >
 partial specialisation when FunctionType is a scalar type. matrix ordered in row major format of M columns. More...
struct  tfel::math::internals::BuildDerivativeViewFromTinyMatrixImplementation< false, true, M, FunctionType, VariableType >
 partial specialisation when VariableType is a scalar type. matrix ordered in row major format of M columns. More...
struct  tfel::math::internals::BuildDerivativeViewFromTinyMatrixImplementation< true, true, M, FunctionType, VariableType >
struct  tfel::math::internals::BuildDerivativeViewFromTinyMatrix< M, FunctionType, VariableType >
 a metafunction returning a view type on a derivative in tiny matrix ordered in row major format of M columns. More...
struct  tfel::math::internals::BuildStridedDerivativeViewFromTinyMatrixImplementation< are_both_scalars, M, FunctionType, VariableType >
 a metafunction returning a strided view type on a derivative in tiny matrix ordered of M columns. More...
struct  tfel::math::internals::BuildStridedDerivativeViewFromTinyMatrixImplementation< true, M, FunctionType, VariableType >
 partial specialisation when both the function and the variable types are scalar types. More...
struct  tfel::math::internals::BuildStridedDerivativeViewFromTinyMatrix< M, FunctionType, VariableType >
 a metafunction returning a strided view type on a derivative in tiny matrix ordered in row major format of M columns. More...
struct  tfel::math::internals::BuildScatteredDerivativeViewFromTinyMatrixImplementation< are_both_scalars, M, FunctionType, VariableType >
 a metafunction returning a scattered view type on a derivative in tiny matrix ordered of M columns. More...
struct  tfel::math::internals::BuildScatteredDerivativeViewFromTinyMatrixImplementation< true, M, FunctionType, VariableType >
 partial specialisation when both the function and the variable types are scalar types. More...
struct  tfel::math::internals::BuildScatteredDerivativeViewFromTinyMatrix< M, FunctionType, VariableType >
 a metafunction returning a scattered view type on a derivative in tiny matrix ordered in row major format of M columns. More...
struct  tfel::math::DerivativeTypeDispatcher< MatrixTag, ScalarTag, tmatrix< N, M, TMatrixNumericType >, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  tfel::math::DerivativeTypeDispatcher< ScalarTag, MatrixTag, ScalarType, tmatrix< N, M, TMatrixNumericType > >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  tfel::math::DerivativeTypeDispatcher< VectorTag, VectorTag, tvector< N1, TVectorNumericTypeType1 >, tvector< N2, TVectorNumericTypeType2 > >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  tfel::math::tmatrix< N, M, ValueType >
struct  tfel::typetraits::IsAssignableTo< tfel::math::tmatrix< N, M, T2 >, tfel::math::tmatrix< N, M, T > >
 specialisation of IsAssignableTo for tiny matrices 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.

Typedefs

template<unsigned short N, unsigned short M, typename T>
using tfel::math::TMatrixView = View<tmatrix<N, M, T>>
 a simple alias for backward compatibility
template<unsigned short N, unsigned short M, typename T>
using tfel::math::ConstTMatrixView = ConstView<tmatrix<N, M, T>>
 a simple alias for backward compatibility
template<unsigned short M, typename FunctionType, typename VariableType>
using tfel::math::derivative_view_from_tiny_matrix
 a simple alias to a view type on a derivative in tiny matrix of M columns.
template<unsigned short M, typename FunctionType, typename VariableType>
using tfel::math::strided_derivative_view_from_tiny_matrix
 a simple alias to a strided view type on a derivative in tiny matrix of M columns.
template<unsigned short M, typename FunctionType, typename VariableType>
using tfel::math::scattered_derivative_view_from_tiny_matrix
 a simple alias to a scattered view type on a derivative in tiny matrix of M columns.

Functions

template<typename ValueType, std::size_t M, std::size_t... d>
 tfel::math::tmatrix (ValueType const (&)[M], ValueType const (&... arrays)[d]) -> tmatrix< 1u+sizeof...(d), M, ValueType >
 class template argument deduction
template<unsigned short N, unsigned short M, typename T>
TFEL_HOST_DEVICE constexpr tmatrix< M, N, T > tfel::math::transpose (const tmatrix< N, M, T > &)
template<typename T, typename Operation>
TFEL_HOST_DEVICE constexpr auto tfel::math::det (const Expr< tmatrix< 2, 2, T >, Operation > &)
template<typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::det (const tmatrix< 2, 2, T > &)
template<typename T, typename Operation>
TFEL_HOST_DEVICE constexpr auto tfel::math::det (const Expr< tmatrix< 3, 3, T >, Operation > &)
template<typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::det (const tmatrix< 3, 3, T > &)
template<unsigned short I, unsigned short J, typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
TFEL_HOST_DEVICE constexpr derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative (tmatrix< N, M, base_type< numeric_type< derivative_type< FunctionType, VariableType > > > > &)
 an helper function to create a derivative view from a tiny matrix
template<typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
TFEL_HOST_DEVICE constexpr derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative (tmatrix< N, M, base_type< numeric_type< derivative_type< FunctionType, VariableType > > > > &, const unsigned short, const unsigned short)
 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