tfel
Loading...
Searching...
No Matches
tfel::math::t2tot2< N, ValueType > Struct Template Reference
Inheritance diagram for tfel::math::t2tot2< N, ValueType >:
tfel::math::T2toT2ConceptBase< t2tot2< N, ValueType > > tfel::math::GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >

Public Types

using GenericFixedSizeArrayBase
 a simple alias
Public Types inherited from tfel::math::T2toT2ConceptBase< t2tot2< N, ValueType > >
using ConceptTag
Public Types inherited from tfel::math::GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >
using value_type

Public Member Functions

template<T2toST2Concept T2toST2Type>
requires ((isAssignableTo<numeric_type<T2toST2Type>, ValueType>()) && (getSpaceDimension<T2toST2Type>() == N))
TFEL_HOST_DEVICE constexpr t2tot2 (const T2toST2Type &) noexcept
 constructor from a t2tost2
template<std::size_t... d>
requires ((sizeof...(d) == TensorDimeToSize<N>::value) && ((d == TensorDimeToSize<N>::value) && ...))
TFEL_HOST_DEVICE constexpr t2tot2 (ValueType const (&... arrays)[d])
 constructors from arrays to implement class template argument deduction.
 TFEL_MATH_FIXED_SIZE_ARRAY_DEFAULT_METHODS (t2tot2, GenericFixedSizeArrayBase)
TFEL_HOST_DEVICE constexpr void import (const base_type< ValueType > *const) noexcept
 import values from an external memory location
TFEL_HOST_DEVICE constexpr void copy (const auto) noexcept
 copy from a range
template<T2toST2Concept T2toST2Type>
requires ((isAssignableTo<numeric_type<T2toST2Type>, T>()) && (getSpaceDimension<T2toST2Type>() == N))
constexpr t2tot2 (const T2toST2Type &s) noexcept
Public Member Functions inherited from tfel::math::GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray () noexcept
 default constructor
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (const GenericFixedSizeArray &) noexcept
 copy constructor
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (GenericFixedSizeArray &&) noexcept
 move constructor
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (const ValueType &) noexcept
 constructor from a value
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (const std::initializer_list< ValueType2 > &values) noexcept
 constructor from an initializer list
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (const InputIterator) noexcept
 default donstructor.
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (const OtherArray &) noexcept
 copy constructor from an object assignable to the Child class.
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >() >::size_type getContainerSize () const noexcept
TFEL_HOST_DEVICE constexpr t2tot2< N, ValueType > & operator= (const OtherArray &) noexcept
 assign values values from an other array
TFEL_HOST_DEVICE constexpr t2tot2< N, ValueType > & operator+= (const OtherArray &) noexcept
TFEL_HOST_DEVICE constexpr t2tot2< N, ValueType > & operator-= (const OtherArray &) noexcept
TFEL_HOST_DEVICE constexpr t2tot2< N, ValueType > & operator*= (const ValueType2 &) noexcept
TFEL_HOST_DEVICE constexpr t2tot2< N, ValueType > & operator/= (const ValueType2 &) noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >() >::pointer data () noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >() >::const_pointer data () const noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (const std::initializer_list< ValueType > &values) noexcept

Static Public Member Functions

static TFEL_HOST_DEVICE constexpr auto fromRotationMatrix (const rotation_matrix< ValueType > &) noexcept
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
static TFEL_HOST_DEVICE constexpr auto tpld (const TensorType &) noexcept
template<TensorConcept TensorType, T2toT2Concept T2toT2Type>
requires ( getSpaceDimension<TensorType>() == N && getSpaceDimension<T2toT2Type>() == N && isAssignableTo<typename ComputeBinaryResult<numeric_type<TensorType>, numeric_type<T2toT2Type>, OpMult>::Result, ValueType>())
static TFEL_HOST_DEVICE constexpr auto tpld (const TensorType &, const T2toT2Type &) noexcept
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
static TFEL_HOST_DEVICE constexpr auto tprd (const TensorType &) noexcept
template<TensorConcept TensorType, T2toT2Concept T2toT2Type>
requires ( getSpaceDimension<TensorType>() == N && getSpaceDimension<T2toT2Type>() == N && isAssignableTo<typename ComputeBinaryResult<numeric_type<TensorType>, numeric_type<T2toT2Type>, OpMult>::Result, ValueType>())
static TFEL_HOST_DEVICE constexpr auto tprd (const TensorType &, const T2toT2Type &) noexcept
static TFEL_HOST_DEVICE constexpr auto transpose_derivative () noexcept
static TFEL_HOST_DEVICE constexpr auto Id () noexcept
static TFEL_HOST_DEVICE constexpr auto IxI () noexcept
static TFEL_HOST_DEVICE constexpr auto K () noexcept
static TFEL_HOST_DEVICE constexpr base_type< ValueType > transpose_derivative (const typename t2tot2< N, ValueType >::size_type, const typename t2tot2< N, ValueType >::size_type) noexcept
static TFEL_HOST_DEVICE constexpr base_type< ValueType > Id (const typename t2tot2< N, ValueType >::size_type, const typename t2tot2< N, ValueType >::size_type) noexcept
static TFEL_HOST_DEVICE constexpr base_type< ValueType > IxI (const typename t2tot2< N, ValueType >::size_type, const typename t2tot2< N, ValueType >::size_type) noexcept
static TFEL_HOST_DEVICE constexpr base_type< ValueType > K (const typename t2tot2< N, ValueType >::size_type, const typename t2tot2< N, ValueType >::size_type) noexcept
Static Public Member Functions inherited from tfel::math::GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >
static TFEL_HOST_DEVICE constexpr t2tot2< N, ValueType > zero ()

Additional Inherited Members

Protected Member Functions inherited from tfel::math::GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray & operator= (const GenericFixedSizeArray &) noexcept
 assignement operator
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray & operator= (GenericFixedSizeArray &&) noexcept
 move assigment
Protected Attributes inherited from tfel::math::GenericFixedSizeArray< t2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >
FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType >::value_type v [getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >()]
 values holded

Member Typedef Documentation

◆ GenericFixedSizeArrayBase

template<unsigned short N, typename ValueType>
using tfel::math::t2tot2< N, ValueType >::GenericFixedSizeArrayBase
Initial value:
GenericFixedSizeArray<
TensorDimeToSize<N>::value,
ValueType>>
an array policy describing a fixed size matrix stored in row major format based on the fixed size mat...
Definition FixedSizeArrayPolicies.hxx:37
TFEL_HOST_DEVICE constexpr t2tot2(const T2toST2Type &) noexcept
constructor from a t2tost2

a simple alias

Constructor & Destructor Documentation

◆ t2tot2() [1/2]

template<unsigned short N, typename ValueType>
template<T2toST2Concept T2toST2Type>
requires ((isAssignableTo<numeric_type<T2toST2Type>, ValueType>()) && (getSpaceDimension<T2toST2Type>() == N))
TFEL_HOST_DEVICE constexpr tfel::math::t2tot2< N, ValueType >::t2tot2 ( const T2toST2Type & )
constexprnoexcept

constructor from a t2tost2

Parameters
[in]v: values

◆ t2tot2() [2/2]

template<unsigned short N, typename ValueType>
requires ((sizeof...(d) == TensorDimeToSize<N>::value) && ((d == TensorDimeToSize<N>::value) && ...))
template<std::size_t... d>
requires ((sizeof...(d) == TensorDimeToSize<N>::value) && ((d == TensorDimeToSize<N>::value) && ...))
TFEL_HOST_DEVICE constexpr tfel::math::t2tot2< N, ValueType >::t2tot2 ( ValueType const (&... arrays)[d])
constexpr

constructors from arrays to implement class template argument deduction.

Template Parameters
ddimensions of the arrays

Member Function Documentation

◆ fromRotationMatrix()

template<unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::fromRotationMatrix ( const rotation_matrix< ValueType > & )
staticconstexprnoexcept
Returns
a t2tot2 which acts on a tensor as a rotation of the coordinate system
Parameters
[in]r: rotation matrix

◆ Id() [1/2]

template<unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::Id ( )
staticconstexprnoexcept
Returns
the identity

◆ Id() [2/2]

template<unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr base_type< ValueType > tfel::math::t2tot2< N, ValueType >::Id ( const typename t2tot2< N, ValueType >::size_type ,
const typename t2tot2< N, ValueType >::size_type  )
staticconstexprnoexcept
Returns
the component (i, j) of Id(), without building the tensor.
Parameters
[in]irow index
[in]jcolumn index

◆ IxI() [1/2]

template<unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::IxI ( )
staticconstexprnoexcept
Returns
Id2^Id2, where Id2 is the identity tensor

◆ IxI() [2/2]

template<unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr base_type< ValueType > tfel::math::t2tot2< N, ValueType >::IxI ( const typename t2tot2< N, ValueType >::size_type ,
const typename t2tot2< N, ValueType >::size_type  )
staticconstexprnoexcept
Returns
the component (i, j) of IxI(), without building the tensor.
Parameters
[in]irow index
[in]jcolumn index

◆ K() [1/2]

template<unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::K ( )
staticconstexprnoexcept
Returns
Id4-Id2^Id2/3, where Id4 is the identity of t2tot2 and Id2 is the identity tensor

◆ K() [2/2]

template<unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr base_type< ValueType > tfel::math::t2tot2< N, ValueType >::K ( const typename t2tot2< N, ValueType >::size_type ,
const typename t2tot2< N, ValueType >::size_type  )
staticconstexprnoexcept
Returns
the component (i, j) of K(), without building the tensor.
Parameters
[in]irow index
[in]jcolumn index

◆ tpld() [1/2]

template<unsigned short N, typename T>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::tpld ( const TensorType & B)
staticconstexprnoexcept
Parameters
[in]B: second tensor of the product
Returns
the left part of the derivative of a tensor product

◆ tpld() [2/2]

template<unsigned short N, typename T>
requires ( getSpaceDimension<TensorType>() == N && getSpaceDimension<T2toT2Type>() == N && isAssignableTo<typename ComputeBinaryResult<numeric_type<TensorType>, numeric_type<T2toT2Type>, OpMult>::Result, ValueType>())
template<TensorConcept TensorType, T2toT2Concept T2toT2Type>
requires ( getSpaceDimension<TensorType>() == N && getSpaceDimension<T2toT2Type>() == N && isAssignableTo<typename ComputeBinaryResult<numeric_type<TensorType>, numeric_type<T2toT2Type>, OpMult>::Result, ValueType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::tpld ( const TensorType & B,
const T2toT2Type & C )
staticconstexprnoexcept
Parameters
[in]B: second tensor of the product
[in]C: derivative of the first tensor
Returns
the left part of the derivative of a tensor product

◆ tprd() [1/2]

template<unsigned short N, typename T>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::tprd ( const TensorType & A)
staticconstexprnoexcept
Parameters
[in]A: first tensor of the product
Returns
the right part of the derivative of a tensor product

◆ tprd() [2/2]

template<unsigned short N, typename T>
requires ( getSpaceDimension<TensorType>() == N && getSpaceDimension<T2toT2Type>() == N && isAssignableTo<typename ComputeBinaryResult<numeric_type<TensorType>, numeric_type<T2toT2Type>, OpMult>::Result, ValueType>())
template<TensorConcept TensorType, T2toT2Concept T2toT2Type>
requires ( getSpaceDimension<TensorType>() == N && getSpaceDimension<T2toT2Type>() == N && isAssignableTo<typename ComputeBinaryResult<numeric_type<TensorType>, numeric_type<T2toT2Type>, OpMult>::Result, ValueType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::tprd ( const TensorType & A,
const T2toT2Type & C )
staticconstexprnoexcept
Parameters
[in]A: first tensor of the product
[in]C: derivative of the first tensor
Returns
the right part of the derivative of a tensor product

◆ transpose_derivative() [1/2]

template<unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::t2tot2< N, T >::transpose_derivative ( )
staticconstexprnoexcept
Returns
the derivative of the transpose of a tensor with respect of this tensor

◆ transpose_derivative() [2/2]

template<unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr base_type< ValueType > tfel::math::t2tot2< N, ValueType >::transpose_derivative ( const typename t2tot2< N, ValueType >::size_type ,
const typename t2tot2< N, ValueType >::size_type  )
staticconstexprnoexcept
Returns
the component (i, j) of transpose_derivative(), without building the tensor.
Parameters
[in]irow index
[in]jcolumn index

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