tfel
Loading...
Searching...
No Matches
tfel::math::t2tost2< N, ValueType > Class Template Reference

linear operator which turns an unsymmetric tensor to symmetric tensor. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Forward/t2tost2.hxx>

Inheritance diagram for tfel::math::t2tost2< N, ValueType >:
tfel::math::T2toST2ConceptBase< t2tost2< N, ValueType > > tfel::math::GenericFixedSizeArray< t2tost2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >

Public Types

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

Public Member Functions

 TFEL_MATH_FIXED_SIZE_ARRAY_DEFAULT_METHODS (t2tost2, GenericFixedSizeArrayBase)
template<std::size_t... d>
requires ((sizeof...(d) == StensorDimeToSize<N>::value) && ((d == TensorDimeToSize<N>::value) && ...))
TFEL_HOST_DEVICE constexpr t2tost2 (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
TFEL_HOST_DEVICE constexpr void copy (const auto) noexcept
 copy from a range
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, T>())
TFEL_HOST_DEVICE constexpr auto dCdF (const TensorType &F) noexcept
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, T>())
TFEL_HOST_DEVICE constexpr auto dBdF (const TensorType &F) noexcept
Public Member Functions inherited from tfel::math::GenericFixedSizeArray< t2tost2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< 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< t2tost2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >() >::size_type getContainerSize () const noexcept
TFEL_HOST_DEVICE constexpr t2tost2< N, ValueType > & operator= (const OtherArray &) noexcept
 assign values values from an other array
TFEL_HOST_DEVICE constexpr t2tost2< N, ValueType > & operator+= (const OtherArray &) noexcept
TFEL_HOST_DEVICE constexpr t2tost2< N, ValueType > & operator-= (const OtherArray &) noexcept
TFEL_HOST_DEVICE constexpr t2tost2< N, ValueType > & operator*= (const ValueType2 &) noexcept
TFEL_HOST_DEVICE constexpr t2tost2< N, ValueType > & operator/= (const ValueType2 &) noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< t2tost2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >() >::pointer data () noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< t2tost2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType >, getArrayPolicySize< FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< 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

template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
static TFEL_HOST_DEVICE TFEL_HOST_DEVICE constexpr auto dCdF (const TensorType &) noexcept
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
static TFEL_HOST_DEVICE TFEL_HOST_DEVICE constexpr auto dBdF (const TensorType &) noexcept
Static Public Member Functions inherited from tfel::math::GenericFixedSizeArray< t2tost2< N, ValueType >, FixedSizeRowMajorMatrixPolicy< StensorDimeToSize< N >::value, TensorDimeToSize< N >::value, ValueType > >
static TFEL_HOST_DEVICE constexpr t2tost2< N, ValueType > zero ()

Additional Inherited Members

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

Detailed Description

template<unsigned short N, typename ValueType>
class tfel::math::t2tost2< N, ValueType >

linear operator which turns an unsymmetric tensor to symmetric tensor.

Template Parameters
Nthe spatial dimension, see StensorDimeToSize for details.
Tnumerical type used.
Precondition
This class is only defined for N=1u,2u and 3u.
See also
StensorDimeToSize and StensorSizeToDime.

Member Typedef Documentation

◆ GenericFixedSizeArrayBase

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

a simple alias

Constructor & Destructor Documentation

◆ t2tost2()

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

constructors from arrays to implement class template argument deduction.

Template Parameters
ddimensions of the arrays

Member Function Documentation

◆ dBdF()

template<unsigned short N, typename ValueType>
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
TFEL_HOST_DEVICE TFEL_HOST_DEVICE constexpr auto tfel::math::t2tost2< N, ValueType >::dBdF ( const TensorType & )
staticconstexprnoexcept
Parameters
[in]F: deformation gradient
Returns
the derivative of the Cauchy left symmetric tensor with respect to the deformation gradient

◆ dCdF()

template<unsigned short N, typename ValueType>
template<TensorConcept TensorType>
requires (getSpaceDimension<TensorType>() == N && isAssignableTo<numeric_type<TensorType>, ValueType>())
TFEL_HOST_DEVICE TFEL_HOST_DEVICE constexpr auto tfel::math::t2tost2< N, ValueType >::dCdF ( const TensorType & )
staticconstexprnoexcept
Parameters
[in]F: deformation gradient
Returns
the derivative of the Cauchy right symmetric tensor with respect to the deformation gradient

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