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

Public Types

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

Public Member Functions

 TFEL_MATH_FIXED_SIZE_ARRAY_DEFAULT_METHODS (st2tot2, GenericFixedSizeArrayBase)
template<std::size_t... d>
requires ((sizeof...(d) == TensorDimeToSize<N>::value) && ((d == StensorDimeToSize<N>::value) && ...))
TFEL_HOST_DEVICE constexpr st2tot2 (ValueType const (&... arrays)[d])
 constructors from arrays to implement class template argument deduction.
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
Public Member Functions inherited from tfel::math::GenericFixedSizeArray< st2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< 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< st2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType > >() >::size_type getContainerSize () const noexcept
TFEL_HOST_DEVICE constexpr st2tot2< N, ValueType > & operator= (const OtherArray &) noexcept
 assign values values from an other array
TFEL_HOST_DEVICE constexpr st2tot2< N, ValueType > & operator+= (const OtherArray &) noexcept
TFEL_HOST_DEVICE constexpr st2tot2< N, ValueType > & operator-= (const OtherArray &) noexcept
TFEL_HOST_DEVICE constexpr st2tot2< N, ValueType > & operator*= (const ValueType2 &) noexcept
TFEL_HOST_DEVICE constexpr st2tot2< N, ValueType > & operator/= (const ValueType2 &) noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< st2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType > >() >::pointer data () noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< st2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType > >() >::const_pointer data () const noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (const std::initializer_list< ValueType > &values) noexcept

Static Public Member Functions

template<StensorConcept StensorType>
requires (getSpaceDimension<StensorType>() == N && isAssignableTo<numeric_type<StensorType>, ValueType>())
static TFEL_HOST_DEVICE constexpr auto tpld (const StensorType &) noexcept
template<StensorConcept StensorType, ST2toST2Concept ST2toST2Type>
requires ( getSpaceDimension<StensorType>() == N && getSpaceDimension<ST2toST2Type>() == N && isAssignableTo<BinaryOperationResult<numeric_type<StensorType>, numeric_type<ST2toST2Type>, OpMult>, ValueType>())
static TFEL_HOST_DEVICE constexpr auto tpld (const StensorType &, const ST2toST2Type &) noexcept
template<StensorConcept StensorType>
requires (getSpaceDimension<StensorType>() == N && isAssignableTo<numeric_type<StensorType>, ValueType>())
static TFEL_HOST_DEVICE constexpr auto tprd (const StensorType &) noexcept
template<StensorConcept StensorType, ST2toST2Concept ST2toST2Type>
requires ( getSpaceDimension<StensorType>() == N && getSpaceDimension<ST2toST2Type>() == N && isAssignableTo<BinaryOperationResult<numeric_type<StensorType>, numeric_type<ST2toST2Type>, OpMult>, ValueType>())
static TFEL_HOST_DEVICE constexpr auto tprd (const StensorType &, const ST2toST2Type &) noexcept
Static Public Member Functions inherited from tfel::math::GenericFixedSizeArray< st2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType > >
static TFEL_HOST_DEVICE constexpr st2tot2< N, ValueType > zero ()

Additional Inherited Members

Protected Member Functions inherited from tfel::math::GenericFixedSizeArray< st2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< 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< st2tot2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType > >
FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType >::value_type v [getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< TensorDimeToSize< N >::value, StensorDimeToSize< N >::value, ValueType > >()]
 values holded

Member Typedef Documentation

◆ GenericFixedSizeArrayBase

template<unsigned short N, typename ValueType>
using tfel::math::st2tot2< N, ValueType >::GenericFixedSizeArrayBase
Initial value:
GenericFixedSizeArray<
StensorDimeToSize<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 st2tot2(ValueType const (&... arrays)[d])
constructors from arrays to implement class template argument deduction.
Definition st2tot2.ixx:74

a simple alias

Constructor & Destructor Documentation

◆ st2tot2()

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

constructors from arrays to implement class template argument deduction.

Template Parameters
ddimensions of the arrays

Member Function Documentation

◆ tpld() [1/2]

template<unsigned short N, typename T>
requires (getSpaceDimension<StensorType>() == N && isAssignableTo<numeric_type<StensorType>, ValueType>())
template<StensorConcept StensorType>
requires (getSpaceDimension<StensorType>() == N && isAssignableTo<numeric_type<StensorType>, ValueType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::st2tot2< N, T >::tpld ( const StensorType & 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 ValueType>
requires ( getSpaceDimension<StensorType>() == N && getSpaceDimension<ST2toST2Type>() == N && isAssignableTo<BinaryOperationResult<numeric_type<StensorType>, numeric_type<ST2toST2Type>, OpMult>, ValueType>())
template<StensorConcept StensorType, ST2toST2Concept ST2toST2Type>
requires ( getSpaceDimension<StensorType>() == N && getSpaceDimension<ST2toST2Type>() == N && isAssignableTo<BinaryOperationResult<numeric_type<StensorType>, numeric_type<ST2toST2Type>, OpMult>, ValueType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::st2tot2< N, ValueType >::tpld ( const StensorType & b,
const ST2toST2Type & 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<StensorType>() == N && isAssignableTo<numeric_type<StensorType>, ValueType>())
template<StensorConcept StensorType>
requires (getSpaceDimension<StensorType>() == N && isAssignableTo<numeric_type<StensorType>, ValueType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::st2tot2< N, T >::tprd ( const StensorType & 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<StensorType>() == N && getSpaceDimension<ST2toST2Type>() == N && isAssignableTo<BinaryOperationResult<numeric_type<StensorType>, numeric_type<ST2toST2Type>, OpMult>, ValueType>())
template<StensorConcept StensorType, ST2toST2Concept ST2toST2Type>
requires ( getSpaceDimension<StensorType>() == N && getSpaceDimension<ST2toST2Type>() == N && isAssignableTo<BinaryOperationResult<numeric_type<StensorType>, numeric_type<ST2toST2Type>, OpMult>, ValueType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::st2tot2< N, T >::tprd ( const StensorType & a,
const ST2toST2Type & 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

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