tfel
Loading...
Searching...
No Matches
tfel::math Namespace Reference

This namespace contains various classes and functions défining mathematical objects and numerical algorithms. More...

Namespaces

namespace  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.
namespace  ieee754

Classes

struct  AitkenAccelerationAlgorithm
 an implementation of the Aitken \(\Delta^{2}\) algorithm More...
struct  AndersonBase
 Weights for the Anderson accelation algorithm. More...
struct  FAnderson
struct  UAnderson
struct  ConstArrayCommonMethods
 a structure gathering access methods for const arrays. More...
struct  MutableArrayCommonMethods
 a structure gathering access methods and helper function for arrays. More...
class  ArrayTag
 Helper class to characterise arrays. More...
class  ArrayConceptBase
 A class used to model the concept of arrays. More...
struct  ConceptRebind< ArrayTag, ArrayType >
 paratial specialisation for arrays More...
class  ComputeUnaryResult_< ArrayTag, UnaryOperatorTag, A, OpNeg >
 partial specialisation of ComputeUnaryResult_ for arrays More...
struct  StandardArrayPolicyAliases
 a base class defining some aliases for standard array policies More...
struct  StandardArrayPolicy
 a standard array policy. More...
struct  MathObjectTraitsFromArrayPolicy
 an helper structure to define a math object traits from an array policy. More...
struct  ConstFixedSizeArrayBase
 a base class for fixed sized const arrays. More...
struct  ConstRuntimeArrayBase
 a base class for fixed sized const arrays. More...
struct  FixedSizeArrayDerivativePolicy
 an array policy resulting from the derivation of an math object with another math object. More...
struct  FixedSizeArrayDerivativeTag
 a tag associated with the FixedSizeArrayDerivativeConcept More...
struct  FixedSizeArrayDerivativeTraits
 a traits class associated to characterize the result of the derivation of an array with respect to another array. More...
struct  FixedSizeArrayDerivativeConcept
 a tag associated with the FixedSizeArrayDerivativeConcept More...
struct  ConceptRebind< FixedSizeArrayDerivativeTag< Array1Tag, Array2Tag >, ArrayDerivativeType >
 partial specialisation of the ConceptRebind class for array derivative. More...
struct  FixedSizeArrayDerivative
 a class representing the derivative of an array with respect to another array. More...
struct  FixedSizeArrayDerivativeTraits< FixedSizeArrayDerivative< Array1, Array2 > >
 partial specialisation of the FixedSizeArrayDerivativeTraits class More...
struct  FixedSizeArrayDerivativeTraits< Expr< FixedSizeArrayDerivative< Array1, Array2 >, Operation > >
 partial specialisation of the FixedSizeArrayDerivativeTraits class for expression More...
struct  FixedSizeArrayDerivativeTraits< View< FixedSizeArrayDerivative< Array1, Array2 > > >
 partial specialisation of the FixedSizeArrayDerivativeTraits class for a view More...
struct  MathObjectTraits< FixedSizeArrayDerivative< Array1, Array2 > >
 partial specialisation of the MathObjectTraits class. More...
class  UnaryResultType< FixedSizeArrayDerivative< Array1, Array2 >, OpNeg >
 partial specialisation for unary operations More...
class  ComputeBinaryOperationResult< FixedSizeArrayDerivativeTag< typename ComputeObjectTag< Array11 >::type, typename ComputeObjectTag< Array12 >::type >, FixedSizeArrayDerivativeTag< typename ComputeObjectTag< Array21 >::type, typename ComputeObjectTag< Array22 >::type >, FixedSizeArrayDerivative< Array11, Array12 >, FixedSizeArrayDerivative< Array21, Array22 >, OpPlus >
 partial specialisation for the addition of two array derivatives. More...
class  ComputeBinaryOperationResult< FixedSizeArrayDerivativeTag< typename ComputeObjectTag< Array11 >::type, typename ComputeObjectTag< Array12 >::type >, FixedSizeArrayDerivativeTag< typename ComputeObjectTag< Array21 >::type, typename ComputeObjectTag< Array22 >::type >, FixedSizeArrayDerivative< Array11, Array12 >, FixedSizeArrayDerivative< Array21, Array22 >, OpMinus >
 partial specialisation for the addition of two array derivatives. More...
class  ComputeBinaryOperationResult< ScalarTag, FixedSizeArrayDerivativeTag< typename ComputeObjectTag< Array1 >::type, typename ComputeObjectTag< Array2 >::type >, ScalarType, FixedSizeArrayDerivative< Array1, Array2 >, OpMult >
 numeric type of resulting array Here we make a tricky choice and it is not totally clean. More...
class  ComputeBinaryOperationResult< FixedSizeArrayDerivativeTag< typename ComputeObjectTag< Array1 >::type, typename ComputeObjectTag< Array2 >::type >, ScalarTag, FixedSizeArrayDerivative< Array1, Array2 >, ScalarType, OpMult >
 partial specialisation for the multiplication an array derivative by a scalar. More...
class  ComputeBinaryOperationResult< FixedSizeArrayDerivativeTag< typename ComputeObjectTag< Array1 >::type, typename ComputeObjectTag< Array2 >::type >, ScalarTag, FixedSizeArrayDerivative< Array1, Array2 >, ScalarType, OpDiv >
 partial specialisation for the multiplication an array derivative by a scalar. More...
struct  LoopOverInnerIndices
struct  LoopOverSecondIndices
struct  LoopOverFirstIndices
struct  MultiplyFixedSizeArrayDerivatives
struct  FixedSizeVectorPolicy
 an array policy based on the fixed size vector indexing policy More...
struct  FixedSizeRowMajorMatrixPolicy
 an array policy describing a fixed size matrix stored in row major format based on the fixed size matrix indexing policy. More...
struct  ScalarIndexingPolicy
 an indexing policy suitable for scalar More...
struct  FixedSizeVectorIndexingPolicy
 an indexing policy suitable for fixed sized vectors More...
struct  FixedSizeRowMajorMatrixIndexingPolicy
 partial specialisation of the `IndexingPoliciesCompatiblityCheck class for FixedSizeVectorIndexingPolicy of the same size. */ template <typename SizeType, SizeType N, SizeType Stride1, SizeType Stride2> struct IndexingPoliciesCompatiblityCheck< FixedSizeVectorIndexingPolicy<SizeType, N, Stride1>, FixedSizeVectorIndexingPolicy<SizeType, N, Stride2>> : public IndexingPoliciesCompatiblityCheckBase< FixedSizeVectorIndexingPolicy<SizeType, N, Stride1>, FixedSizeVectorIndexingPolicy<SizeType, N, Stride2>> { static constexpr bool haveTheSameMemoryLayout() { return Stride1 == Stride2; } // end of haveTheSameMemoryLayout }; // end of struct IndexingPolicyCompatiblityCheck More...
struct  IndexingPoliciesCompatiblityCheck< FixedSizeRowMajorMatrixIndexingPolicy< SizeType, N, M, Stride1 >, FixedSizeRowMajorMatrixIndexingPolicy< SizeType, N, M, Stride2 > >
 partial specialisation of the IndexingPoliciesCompatiblityCheck class for FixedSizeRowMajorMatrixIndexingPolicy of the same sizes. More...
struct  FixedSizeIndexingPoliciesCartesianProduct
 an indexing policy build as the cartesian product of the two fixed size indexing policies. More...
struct  GenericFixedSizeArray
 a fixed size array class with storage on the stack. More...
struct  GenericFixedSizeConstArrayView
struct  GenericRuntimeArray
 a fixed size array class with storage on the stack. More...
struct  IndexingPoliciesCompatiblityCheckBase
 a base class to compare indexing policies which provide default implementations. More...
struct  IndexingPoliciesCompatiblityCheck
 a structure used to compare two indexing policies More...
struct  LoopUnRoller
struct  IterateOverMultipleIndices
struct  MultiIndicesUnaryOperatorFunctor
struct  MultiIndicesBinaryOperatorFunctor
struct  MultiIndicesRandomAccessInteratorWrapper
struct  MutableFixedSizeArrayBase
 a base class for mutable fixed size arrays. More...
struct  MutableRuntimeArrayBase
 a base class for mutable arrays with runtime sizes. More...
struct  RuntimeVectorArrayPolicy
 an array policy based on the runtime vector indexing policy More...
struct  RuntimeRowMajorMatrixArrayPolicy
 an array policy based on the runtime row-major matrix indexing policy More...
struct  RuntimeVectorIndexingPolicy
 an indexing policy suitable for vectors whose size is given at runtime. More...
struct  RuntimeRowMajorMatrixIndexingPolicy
 partial specialisation of the `IndexingPoliciesCompatiblityCheck class for RuntimeVectorIndexingPolicy of the same size. */ template <> struct IndexingPoliciesCompatiblityCheck<RuntimeVectorIndexingPolicy, RuntimeVectorIndexingPolicy> : public IndexingPoliciesCompatiblityCheckBase< RuntimeVectorIndexingPolicy, RuntimeVectorIndexingPolicy> { [[nodiscard]] static constexpr bool haveTheSameMemoryLayout() { return true; } // end of haveTheSameMemoryLayout }; // end of struct IndexingPolicyCompatiblityCheck More...
struct  ScatteredAccessPolicy
 access policy storing one pointer per component of the mapped object More...
struct  AccessPolicyBasedView
 view of an object whose components are not stored contiguously More...
struct  MathObjectTraits< AccessPolicyBasedView< MappedType, IndexingPolicyType, AccessPolicy > >
 partial specialisation of the MathObjectTraits for const views More...
struct  ResultOfEvaluation< AccessPolicyBasedView< MappedType, IndexingPolicyType, AccessPolicy > >
 partial specialisation of the ResultOfEvaluation class for views. More...
struct  ConstArrayWithContiguousDataSTLCompatibilityLayer
 partial specialisation of the ArraySTLCompatibilityLayer class when the memoy layout is contiguous. More...
struct  ConstArrayWithoutContiguousDataSTLCompatibilityLayer
struct  ConstArraySTLCompatibilityLayer
 base class providing standard methods and aliases for compatibility with the standard template library (STL) based on the curiously recurring template pattern (CRTP). More...
struct  MutableArrayWithContiguousDataSTLCompatibilityLayer
 partial specialisation of the ArraySTLCompatibilityLayer class when the memoy layout is contiguous. More...
struct  MutableArrayWithoutContiguousDataSTLCompatibilityLayer
struct  MutableArraySTLCompatibilityLayer
 base class providing standard methods and aliases for compatibility with the standard template library (STL) based on the curiously recurring template pattern (CRTP). More...
struct  StridedAccessPolicy
 access policy storing a pointer to the first component of the mapped object and the stride between two successive components More...
struct  StridedViewsArray
 a structure used to represent an array of strided views. More...
struct  StridedViewsFixedSizeVectorIndexingPolicy
struct  View
 view of an object from a continuous memory area More...
struct  ViewArrayPolicy
 a standard array policy. More...
struct  MathObjectTraits< View< MappedType, ArrayPolicy > >
 partial specialisation of the MathObjectTraits for const views More...
struct  ResultOfEvaluation< View< MappedType, ArrayPolicy > >
 partial specialisation of the ResultOfEvaluation class for views. More...
struct  ViewsArray
 a structure used to represent an array of views. More...
struct  ViewsFixedSizeVectorIndexingPolicy
struct  ResultType< cadna::numeric_type< T1 >, cadna::numeric_type< T2 >, Op >
struct  ResultType< cadna::numeric_type< T1 >, T2, Op >
struct  ResultType< T1, cadna::numeric_type< T2 >, Op >
struct  UnaryResultType< cadna::numeric_type< T >, Power< N, D > >
struct  CubicSplineUninitialised
struct  CubicSplineInvalidAbscissaVectorSize
struct  CubicSplineNullPivot
struct  CubicSplineInvalidOrdinateVectorSize
struct  CubicSplineInvalidInputs
struct  CubicSplineUnorderedAbscissaVector
struct  CubicSplineCollocationPoint
 structure which represents a collocation point More...
struct  CubicSpline
 structure in charge of computing the cubic spline of a series of collocation points More...
struct  GeometricDiscretizationInvalidDensity
struct  GeometricDiscretizationInvalidLength
struct  GeometricDiscretizationInvalidNumberOfElements
struct  Evaluator
 class in charge of handling a function defined by a string. More...
struct  ExprBase
 an helper class More...
struct  Expr
 an Expr object allows the lazy evaluation of a mathematical operation. More...
struct  Expr< ResultType, UnaryOperation< T1, Op > >
 an Expr object allowing the lazy evaluation of an unary operation. More...
struct  Expr< ResultType, BinaryOperation< T1, T2, Op > >
 an Expr object allowing the lazy evaluation of a binary operation. More...
struct  Expr< ResultType, ScalarObjectOperation< T1, T2, Op > >
struct  Expr< ResultType, ObjectScalarOperation< T1, T2, Op > >
struct  Expr< ResultType, DiadicProductOperation< T1, T2 > >
struct  MathObjectTraits< Expr< ResultType, Operation > >
 partial specialisation of the MathObjectTraits. We assume that the expression has the same properties that the result of its evaluation. More...
struct  KrigingModelAdaptator
struct  FactorizedKriging
struct  FactorizedKriging1D1D
struct  FactorizedKriging1D2D
struct  FactorizedKriging1D3D
struct  UnaryOperation
struct  BinaryOperation
struct  ScalarObjectOperation
struct  ObjectScalarOperation
struct  DiadicProductOperation
struct  ResultOfEvaluation
 a metafunction giving the result of a the evaluation of an object. More...
struct  ResultOfEvaluation< Expr< ResultType, Operation > >
 partial specialisation of the ResultOfEvaluation class for objects representing a lazy expression. More...
struct  fsarray
 a class representing tiny vectors of fixed size. More...
struct  MathObjectTraits< fsarray< N, T > >
 partial specialisation for fsarrays. More...
struct  BaseType
struct  BaseType< T >
 partial specialisation for math objects More...
class  matrix
 runtime row-major matrices More...
struct  MathObjectTraits< matrix< T > >
 partial specialisation for matrix. This is a MatrixConcept requirement. More...
struct  Quantity
struct  QuantityTraits
 an helper structure to retrieve the underlying numeric type and unit from a type when this is meaningful. More...
struct  QuantityTraits< Quantity< QuantityUnitType, QuantityValueType, QuantityOwnershipPolicy > >
 partial specialisation for quantities. More...
struct  qt
 a simple alias More...
struct  qt_ref
 a simple alias More...
struct  const_qt_ref
 a simple alias More...
struct  MakeQuantityReferenceType
 an helper metafunction which transforms a quantity type into the a reference More...
struct  MakeQuantityReferenceType< qt< UnitType, ValueType > >
 partial specialisation for quantities More...
struct  runtime_array
 a class representing array of dynamic size. More...
struct  MathObjectTraits< runtime_array< ValueType > >
 Partial specialisation for runtime_array. More...
class  st2tost2
 linear operator on symmetric tensors. More...
struct  MathObjectTraits< st2tost2< N, T > >
 partial specialisation of the MathObjectTraits class for st2tost2. More...
struct  st2tot2
struct  MathObjectTraits< st2tot2< N, T > >
class  stensor
 symmetric tensor. More...
struct  MathObjectTraits< stensor< N, T > >
 partial specialisation of the MathObjectTraits class. More...
class  StensorDimeToSize
 Metafunction which returns the number of components of an stensor given the spatial dimension used. The correspondance between these two numbers is given by the following table: More...
class  StensorSizeToDime
 Metafunction which returns the spatial dimension given the number of components of a stensor. More...
class  t2tost2
 linear operator which turns an unsymmetric tensor to symmetric tensor. More...
struct  MathObjectTraits< t2tost2< N, T > >
struct  t2tot2
struct  MathObjectTraits< t2tot2< N, T > >
 partial specialisation of the MathObjectTraits class for t2tot2. More...
struct  tensor
struct  MathObjectTraits< tensor< N, T > >
 partial specialisation of the MathObjectTraits class. More...
class  TensorDimeToSize
 Metafunction which returns the number of components of an tensor given the spatial dimension used. The mapping between these two numbers is given by the following table: More...
class  TensorSizeToDime
 Metafunction which returns the spatial dimension given the number of components of a tensor. More...
class  TinyNewtonRaphson
struct  tmatrix
struct  MathObjectTraits< tmatrix< N, M, T > >
 partial specialisation for tmatrix This is a MatrixConcept requirement. More...
struct  tvector
 a class representing tiny vectors of fixed size. More...
struct  MathObjectTraits< tvector< N, T > >
 partial specialisation for tvectors. More...
class  vector
 A class representing dynamically allocated vector. More...
struct  MathObjectTraits< vector< T > >
 Partial specialisation for the vector class. More...
struct  array_holder
struct  UnaryResultType< fsarray< N, T >, OpNeg >
class  ComputeBinaryOperationResult< ArrayTag, ScalarTag, fsarray< N, T >, Scal, OpMult >
 partial specialisation for fsarray and scalars operations More...
class  ComputeBinaryOperationResult< ArrayTag, ScalarTag, fsarray< N, T >, Scal, OpDiv >
 partial specialisation for fsarray and scalars operations More...
class  ComputeBinaryOperationResult< ScalarTag, ArrayTag, Scal, fsarray< N, T >, OpMult >
 partial specialisation for fsarray and scalars operations More...
class  ResultType< fsarray< N, T >, fsarray< N, T2 >, OpPlus >
 partial specialisation for fsarray More...
class  ResultType< fsarray< N, T >, fsarray< N, T2 >, OpMinus >
 partial specialisation for fsarray More...
struct  FSLevenbergMarquardtVariable
struct  FSLevenbergMarquardtVariable< 1u, T >
struct  FSLevenbergMarquardt
struct  AbsSum
 a basic functor accumulating the absolute value of a container More...
struct  absCompare
struct  Power
 an help structure used to specialize the UnaryResultType class More...
class  UnaryResultType< Complex< float >, Power< N, D > >
class  UnaryResultType< Complex< double >, Power< N, D > >
class  UnaryResultType< Complex< long double >, Power< N, D > >
class  ComputeBinaryOperationHandler
 A helper class for ComputeBinaryResult. This default version returns InvalidType both for Result and Handle. More...
struct  ComputeBinaryOperationHandler< ScalarTag, ScalarTag, A, B, OpPlus >
struct  ComputeBinaryOperationHandler< ScalarTag, ScalarTag, A, B, OpMinus >
struct  ComputeBinaryOperationHandler< ScalarTag, ScalarTag, A, B, OpMult >
struct  ComputeBinaryOperationHandler< ScalarTag, ScalarTag, A, B, OpDiv >
struct  ComputeBinaryOperationHandler< ScalarTag, MathObjectTag, A, B, OpMult >
 partial specialisation of ComputeBinaryOperationHandler for scalar-vector operations. More...
class  ComputeBinaryOperationHandler< MathObjectTag, ScalarTag, A, B, OpMult >
 partial specialisation of ComputeBinaryOperationHandler for vector-scalar operations. More...
class  ComputeBinaryOperationHandler< MathObjectTag, ScalarTag, A, B, OpDiv >
 partial specialisation of ComputeBinaryOperationHandler for vector-scalar operations More...
class  ComputeBinaryOperationHandler< MathObjectTag, MathObjectTag, A, B, OpPlus >
 partial specialisation of ComputeBinaryOperationHandler for vector's operation More...
class  ComputeBinaryOperationHandler< MathObjectTag, MathObjectTag, A, B, OpMinus >
 partial specialisation of ComputeBinaryOperationHandler for vector's operation More...
class  ComputeBinaryResult
class  ComputeObjectTag
 a metafunction which compute the tag. associated with a given type. More...
class  ScalarTag
 Helper class to characterise scalars. More...
class  UnaryOperatorTag
 Helper class to characterise operators. More...
class  ComputeObjectTag_
 An helper metafunction for tag computing. More...
struct  ComputeObjectTag_< Type, true >
 Partial specialisation for scalars. More...
struct  ComputeObjectTag_< Type, false, true >
 Partial specialisation for unary operators. More...
struct  ComputeObjectTag_< Type, false, false, true >
 Partial specialisation for functions. More...
struct  ComputeUnaryResult_
struct  ComputeUnaryResult_< ScalarTag, TagOp, A, Op >
 partial specialisation of ComputeUnaryResult_ for scalars More...
class  ComputeUnaryResult
struct  ConceptRebind
 the ConceptRebind metafunction use the given tag to define a base class for the Type class. More...
struct  ConceptRebind< tfel::meta::InvalidType, Type >
 the ConceptRebind metafunction use the given tag to define a base class for the Type class. More...
struct  CubicRoots
struct  DerivativeTypeDispatcher
 an helper metafunction used to determine the type representing the derivative of an object of type FunctionType with respect to an object of type VariableType. More...
struct  DerivativeTypeDispatcher< tfel::meta::InvalidType, VariableTag, FunctionType, VariableType >
 partial specialisation if the first object does not have a tag. More...
struct  DerivativeTypeDispatcher< FunctionTag, tfel::meta::InvalidType, FunctionType, VariableType >
 partial specialisation if the second object does not have a tag. More...
struct  DerivativeTypeDispatcher< tfel::meta::InvalidType, tfel::meta::InvalidType, FunctionType, VariableType >
 partial specialisation if none o the two objects have a tag. More...
struct  DerivativeTypeImplementation
 a meta function returning the type of the derivative of a variable of type FunctionType with respect to a variable of type VariableType. More...
struct  DerivativeTypeImplementation< true, true, FunctionType, VariableType >
 partial specialisation of both types are scalar More...
struct  DerivativeTypeImplementation< false, true, FunctionType, VariableType >
 partial specialisation of both types are scalar More...
struct  DerivativeType
 a meta function returning the type of the derivative of a variable of type FunctionType with respect to variables of type VariablesType. More...
struct  DerivativeType< FunctionType, VariableType, OtherVariablesTypes... >
struct  DerivativeType< FunctionType, VariableType >
struct  DerivativeTypeMetaFunction
 an helper metafunction to define the derivative of a function with respect to several variables. More...
struct  DerivativeTypeMetaFunction< FunctionType, VariableType >
 partial specialisation of the helper metafunction to end the recursion. More...
struct  DifferenceRandomAccessIteratorBase
 base class of the DifferenceRandomAccessIterator containing some static common utility methods. More...
struct  DifferenceRandomAccessIterator
 an adaptator to random access iterator More...
class  dotProduct
 dotProduct calculates a generalized inner product of the ranges [first1,first1+N) and [first2,first2+N) More...
struct  dotProduct< 0u >
 partial specialisation used to end recursion when using the dotProduct algorithm. More...
struct  DotProduct
struct  DotProduct< 0u, M >
class  EmptyRunTimeProperties
 This class is aimed to used for mathematical objects whose size are known at compile-tme. More...
struct  OpOr
struct  OpAnd
struct  CsteBase
struct  Cste
struct  MathObjectTraitsBase
 a helper structure to define the MathObjectTraits more compactly More...
struct  MathObjectTraits
 a traits class describing a mathematical object More...
struct  ComputeBinaryOperationResult
struct  ResultType
struct  InverseTypeImplementation
 metafunction returning the inverse of a type. More...
struct  InverseTypeImplementation< true, ScalarType >
 partial specialisation of the InverseTypeImplementation for scalars. More...
struct  InverseTypeDispatcher
 an help structure to compute the inverse of a MathObject. This structure is meant to be specialized when meaningful. More...
struct  InverseTypeImplementation< false, MathObjectType >
 partial specialisation of the InverseTypeImplementation for non scalar types. More...
struct  RuntimeCheckFailure
struct  RunTimeCheck
struct  RunTimeCheck< EmptyRunTimeProperties >
struct  StridedRandomAccessIteratorBase
 base class of the StridedRandomAccessIterator containing some static common utility methods. More...
struct  StridedRandomAccessIterator
 an adaptator to random access iterator More...
class  ComputeUnaryOperationResult
 A helper class for UnaryResultType. This default version returns InvalidType both for Result and Handle. More...
class  UnaryResultType
struct  IntegerEvaluator
 class in charge of handling a function defined by a string. More...
struct  Kriging
struct  KrigingDefaultModel
 forward declaration, see KrigingDefaultModels.hxx More...
struct  KrigingDefaultModel< 1u, T, NM >
struct  KrigingDefaultModel< 2u, T, NM >
struct  KrigingDefaultModel< 3u, T, NM >
struct  KrigingDefaultNuggetModel
struct  KrigingErrorInvalidLength
struct  KrigingErrorNoDataSpecified
struct  KrigingErrorInsufficientData
struct  KrigingPieceWiseLinearModel1D
struct  KrigingUtilities
struct  KrigingVariable
struct  KrigingVariable< 1u, T >
struct  Kriging1D
struct  Kriging2D
struct  Kriging3D
struct  LevenbergMarquardt
struct  LUDecomp
struct  LUException
struct  LUUnmatchedSize
struct  LUMatrixNotSquare
struct  LUInvalidMatrixSize
struct  LUNullPivot
struct  LUNullDeterminant
struct  Permutation
struct  TinyPermutation
struct  LUSolve
struct  MathException
struct  MathRunTimeException
struct  InvalidTimeStepException
struct  MathDivergenceException
struct  MaximumNumberOfIterationsReachedException
struct  SingularJacobianException
class  MatrixTag
 Helper class to characterise matrices. More...
class  MatrixConceptBase
 A class used to model the concept of matrices. More...
struct  ConceptRebind< MatrixTag, MatrixType >
 paratial specialisation for matrices More...
class  MatrixVectorHandle
class  VectorMatrixHandle
class  MatrixMatrixHandle
struct  ComputeBinaryOperationHandler< MatrixTag, VectorTag, A, B, OpMult >
 partial specialisation of ComputeBinaryOperationHandler for matrix-vector multiplication More...
struct  ComputeBinaryOperationHandler< VectorTag, MatrixTag, A, B, OpMult >
 partial specialisation of ComputeBinaryOperationHandler for vector-matrix multiplication More...
struct  ComputeBinaryOperationHandler< MatrixTag, MatrixTag, A, B, OpMult >
 partial specialisation of ComputeBinaryOperationHandler for matrix-matrix multiplication More...
class  ComputeUnaryResult_< MatrixTag, UnaryOperatorTag, A, OpNeg >
 partial specialisation of ComputeUnaryResult_ for matrices More...
class  UnaryResultType< tmatrix< N, M, T >, OpNeg >
class  ComputeBinaryOperationResult< MatrixTag, ScalarTag, tmatrix< N, M, T >, Scal, OpMult >
 Partial specialisation for tmatrix and scalars operations. More...
class  ComputeBinaryOperationResult< MatrixTag, ScalarTag, tmatrix< N, M, T >, Scal, OpDiv >
 Partial specialisation for tmatrix and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, MatrixTag, Scal, tmatrix< N, M, T >, OpMult >
 Partial specialisation for tmatrix and scalars operations. More...
class  ResultType< tmatrix< N, M, T >, tmatrix< N, M, T2 >, OpPlus >
 Partial specialisation for tmatrix. More...
class  ResultType< tmatrix< N, M, T >, tmatrix< N, M, T2 >, OpMinus >
 Partial specialisation for tmatrix. More...
class  ResultType< tmatrix< N, M, T >, tvector< M, T2 >, OpMult >
class  ResultType< tvector< N, T >, tmatrix< N, M, T2 >, OpMult >
class  ResultType< tmatrix< N, K, T >, tmatrix< K, M, T2 >, OpMult >
class  MatrixVectorHandle< tmatrix< N, M, T >, tvector< M, T2 >, A, B >
class  MatrixVectorHandle< tvector< N, T >, tmatrix< N, M, T2 >, A, B >
class  MatrixMatrixHandle< tmatrix< N, K, T >, tmatrix< K, M, T2 >, A, B >
struct  TMatrixTMatrixExpr
 an expression representing the product of a (N, K) tiny matrix by a (K, M) tiny matrix. More...
struct  TMatrixTVectorExpr
 A placeholder for the computation of product of a tiny matrix and a tiny vector. More...
struct  TVectorTMatrixExpr
struct  LevenbergMarquardtFunctionWrapper
struct  BissectionAlgorithmData
 a data structure holoding the current state of the bissection algorithm. More...
struct  BissectionAlgorithmBase
 a base class to algorithms that extends a scalar root finding algorithm, such as a fixed-point iteration, Newton-Raphson, Stephensen, etc.. with the bissection algorithm. More...
struct  StackAllocatedTinyNonLinearSolverWorkspace
 base class for allocating on the stack a workspace usable by the solvers derived from TinyNonLinearSolverBase class. More...
struct  GaussKronrodQuadrature
 class implementing numerical integration using the Gauss-Kronrod's quadrature adaptative scheme. More...
struct  UnaryResultType< float, Power< N, D > >
 partial specialisation for the UnaryResultType class for exponentation of floating point number using rational exponent More...
struct  UnaryResultType< double, Power< N, D > >
 partial specialisation for the UnaryResultType class for exponentation of floating point number using rational exponent More...
struct  UnaryResultType< long double, Power< N, D > >
 partial specialisation for the UnaryResultType class for exponentation of floating point number using rational exponent More...
struct  QRDecomp
struct  QRException
struct  QRUnmatchedSize
struct  QRInvalidMatrixSize
struct  QRNullPivot
struct  QuantityTraits< qt< UnitType, ValueType > >
struct  QuantityTraits< qt_ref< UnitType, ValueType > >
struct  QuantityTraits< const_qt_ref< UnitType, ValueType > >
class  UnaryResultType< T, Power< N, D > >
struct  ComputeUnaryOperationResult< ScalarTag, UnaryOperatorTag, T, OpNeg >
struct  ResultType< T1, T2, OpPlus >
 partial specialisation for addition of two quantity objects having the same unit More...
struct  ResultType< T1, T2, OpMinus >
 partial specialisation for subtraction of two quantity objects having the same unit More...
struct  ResultType< T1, T2, OpMult >
 partial specialisation for multiplication of two quantity objects More...
struct  ResultType< T1, T2, OpDiv >
 partial specialisation for division of two quantity objects More...
struct  ResultType< ScalarType, QuantityType, OpPlus >
 partial specialisation for fundamental numeric type and a quantity with no unit More...
struct  ResultType< QuantityType, ScalarType, OpPlus >
 partial specialisation for a quantity with no unit and a fundamental numeric type More...
struct  ResultType< ScalarType, QuantityType, OpMinus >
 partial specialisation for fundamental numeric type and a quantity with no unit More...
struct  ResultType< QuantityType, ScalarType, OpMinus >
 partial specialisation for a quantity with no unit and a fundamental numeric type More...
struct  ResultType< ScalarType, QuantityType, OpMult >
 partial specialisation for fundamental numeric type and a quantity with no unit More...
struct  ResultType< QuantityType, ScalarType, OpMult >
 partial specialisation for a quantity with no unit and a fundamental numeric type More...
struct  ResultType< ScalarType, QuantityType, OpDiv >
 partial specialisation for fundamental numeric type and a quantity with no unit More...
struct  ResultType< QuantityType, ScalarType, OpDiv >
 partial specialisation for a quantity with no unit and a fundamental numeric type More...
struct  RungeKutta2
class  RungeKutta4
struct  TinyRungeKuttaSolverBase
 a base class for a system of ordinary differential equations based on explicit methods of the Runge-Kutta family where the size of the solution is known at compile-time. More...
struct  RungeKutta42
 a simple solver for ordinary differential equations More...
struct  RungeKutta54
 a simple solver for ordinary differential equations More...
struct  UnaryResultType< runtime_array< T >, OpNeg >
class  ComputeBinaryOperationResult< ArrayTag, ScalarTag, runtime_array< T >, Scal, OpMult >
 partial specialisation for runtime_array and scalars operations More...
class  ComputeBinaryOperationResult< ArrayTag, ScalarTag, runtime_array< T >, Scal, OpDiv >
 partial specialisation for runtime_array and scalars operations More...
class  ComputeBinaryOperationResult< ScalarTag, ArrayTag, Scal, runtime_array< T >, OpMult >
 partial specialisation for runtime_array and scalars operations More...
class  ResultType< runtime_array< T >, runtime_array< T2 >, OpPlus >
 partial specialisation for runtime_array More...
class  ResultType< runtime_array< T >, runtime_array< T2 >, OpMinus >
 partial specialisation for runtime_array More...
struct  ScalarNewtonRaphsonParameters
 structure holding parameters of the scalarNewtonRaphson function. More...
struct  StensorProductLeftDerivativeExpr
 empty structure allowing partial specialisation More...
struct  StensorProductRightDerivativeExpr
 empty structure allowing partial specialisation of the Expr class More...
struct  ConvertT2toST2ToST2toST2Expr
struct  DerivativeTypeDispatcher< ST2toST2Tag, ScalarTag, ST2toST2Type, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< ScalarTag, ST2toST2Tag, ScalarType, ST2toST2Type >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< StensorTag, StensorTag, StensorType1, StensorType2 >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  ConvertLogarithmicStrainTangentOperator
 A class used to convert the tangent operator in the logarithmic strain framework into the CSE tangent moduli. More...
struct  ConvertLogarithmicStrainTangentOperator< 1u, stress >
 Partial specialisation of the ConvertLogarithmicStrainTangentOperator in 1D. More...
struct  Expr< ST2toST2ResultType, ConvertT2toST2ToST2toST2Expr< 1u > >
 partial specialisation in 1D More...
struct  Expr< ST2toST2ResultType, ConvertT2toST2ToST2toST2Expr< 2u > >
 partial specialisation in 2D More...
struct  Expr< ST2toST2ResultType, ConvertT2toST2ToST2toST2Expr< 3u > >
 partial specialisation in 3D More...
class  ST2toST2Tag
 Helper class to characterise st2tost2. More...
struct  ST2toST2ConceptBase
 an helper class that simply exposes publically a member named ConceptTag as an alias to ST2toST2Tag. More...
struct  ConceptRebind< ST2toST2Tag, T >
 partial specialisation for fourth order tensor transforming a symmetric tensor in another symmetric tensor More...
struct  ST2toST2TransposeExpr
 an expression for the transpose of an object matching the ST2toST2Concept concept. More...
class  ComputeBinaryOperationHandler< ST2toST2Tag, ST2toST2Tag, A, B, OpMult >
class  ComputeBinaryOperationHandler< ST2toST2Tag, StensorTag, A, B, OpMult >
class  ComputeBinaryOperationHandler< StensorTag, ST2toST2Tag, A, B, OpMult >
struct  ComputeUnaryResult_< ST2toST2Tag, UnaryOperatorTag, A, OpNeg >
class  UnaryResultType< st2tost2< N, T >, OpNeg >
class  ComputeBinaryOperationResult< ST2toST2Tag, ScalarTag, st2tost2< N, T >, Scal, OpMult >
 Partial specialisation for st2tost2 and scalars operations. More...
class  ComputeBinaryOperationResult< ST2toST2Tag, ScalarTag, st2tost2< N, T >, Scal, OpDiv >
 Partial specialisation for st2tost2 and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, ST2toST2Tag, Scal, st2tost2< N, T >, OpMult >
 Partial specialisation for st2tost2 and scalars operations. More...
class  ResultType< st2tost2< N, T >, st2tost2< N, T2 >, OpPlus >
 Partial specialisation for st2tost2. More...
class  ResultType< st2tost2< N, T >, st2tost2< N, T2 >, OpMinus >
 Partial specialisation for st2tost2. More...
class  ResultType< st2tost2< N, T >, stensor< N, T2 >, OpMult >
 Partial specialisation for st2tost2 and stensor multiplication. More...
class  ResultType< stensor< N, T2 >, st2tost2< N, T >, OpMult >
 Partial specialisation for stensor and st2tost2 multiplication. More...
class  ResultType< st2tost2< N, T >, st2tost2< N, T2 >, OpMult >
 Partial specialisation for st2tost2 and st2tost2 multiplication. More...
struct  ST2toST2ST2toST2ProductExpr
struct  Expr< ST2toST2ResultType, ST2toST2ST2toST2ProductExpr< 1u > >
struct  Expr< ST2toST2ResultType, ST2toST2ST2toST2ProductExpr< 2u > >
struct  Expr< ST2toST2ResultType, ST2toST2ST2toST2ProductExpr< 3u > >
struct  ST2toST2StensorProductExpr
struct  Expr< StensorResultType, ST2toST2StensorProductExpr< 1u > >
struct  Expr< StensorResultType, ST2toST2StensorProductExpr< 2u > >
struct  Expr< StensorResultType, ST2toST2StensorProductExpr< 3u > >
struct  StensorSquareDerivativeExpr
 empty structure allowing partial specialisation More...
struct  Expr< ST2toST2ResultType, StensorSquareDerivativeExpr< 1u > >
 partial specialisation for 1D tensor More...
struct  Expr< ST2toST2ResultType, StensorSquareDerivativeExpr< 2u > >
 partial specialisation for 2D tensor More...
struct  Expr< ST2toST2ResultType, StensorSquareDerivativeExpr< 3u > >
 partial specialisation for 3D tensor More...
struct  StensorST2toST2ProductExpr
struct  Expr< StensorResultType, StensorST2toST2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< StensorResultType, StensorST2toST2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< StensorResultType, StensorST2toST2ProductExpr< 3u > >
 partial specialisation in 3D More...
struct  UmatNormaliseTangentOperatorBase
 normalise the tangent operator returned by: More...
struct  UmatNormaliseTangentOperatorBase< 1u, stress >
 partial specialisation of the UmatNormaliseTangentOperatorBase class in 1D. More...
struct  UmatNormaliseTangentOperatorBase< 2u, stress >
 partial specialisation of the UmatNormaliseTangentOperatorBase class in 1D More...
struct  UmatNormaliseTangentOperatorBase< 3u, stress >
 partial specialisation of the UmatNormaliseTangentOperatorBase class in 1D More...
struct  UmatNormaliseTangentOperator
 normalise the tangent operator returned by: More...
struct  TransverseIsotropicWalpoleBasis
struct  DerivativeTypeDispatcher< ST2toT2Tag, ScalarTag, ST2toT2Type, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< ScalarTag, ST2toT2Tag, ScalarType, ST2toT2Type >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< TensorTag, StensorTag, TensorType1, StensorType2 >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
class  ST2toT2Tag
 Helper class to characterise st2tot2. More...
struct  ST2toT2ConceptBase
 an helper class that simply exposes publically a member named ConceptTag as an alias to T2toT2Tag. More...
struct  ConceptRebind< ST2toT2Tag, Type >
 partial specialisation for fourth order tensor More...
class  ComputeBinaryOperationHandler< TensorTag, StensorTag, A, B, OpDiadicProduct >
class  ComputeBinaryOperationHandler< T2toT2Tag, ST2toT2Tag, A, B, OpMult >
class  ComputeBinaryOperationHandler< ST2toT2Tag, T2toST2Tag, A, B, OpMult >
class  ComputeBinaryOperationHandler< ST2toT2Tag, ST2toST2Tag, A, B, OpMult >
class  ComputeBinaryOperationHandler< T2toST2Tag, ST2toT2Tag, A, B, OpMult >
class  ComputeBinaryOperationHandler< ST2toT2Tag, StensorTag, A, B, OpMult >
class  ComputeBinaryOperationHandler< TensorTag, ST2toT2Tag, A, B, OpMult >
struct  ComputeUnaryResult_< ST2toT2Tag, UnaryOperatorTag, A, OpNeg >
class  UnaryResultType< st2tot2< N, T >, OpNeg >
class  ComputeBinaryOperationResult< ST2toT2Tag, ScalarTag, st2tot2< N, T >, Scal, OpMult >
 Partial specialisation for st2tot2 and scalars operations. More...
class  ComputeBinaryOperationResult< ST2toT2Tag, ScalarTag, st2tot2< N, T >, Scal, OpDiv >
 Partial specialisation for st2tot2 and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, ST2toT2Tag, Scal, st2tot2< N, T >, OpMult >
 Partial specialisation for st2tot2 and scalars operations. More...
class  ResultType< st2tot2< N, T >, st2tot2< N, T2 >, OpPlus >
 Partial specialisation for st2tot2. More...
class  ResultType< st2tot2< N, T >, st2tot2< N, T2 >, OpMinus >
 Partial specialisation for st2tot2. More...
class  ResultType< tensor< N, T >, stensor< N, T2 >, OpDiadicProduct >
 Partial specialisation for stensor. More...
class  ResultType< t2tot2< N, T >, st2tot2< N, T2 >, OpMult >
class  ResultType< st2tot2< N, T >, t2tost2< N, T2 >, OpMult >
class  ResultType< st2tot2< N, T >, st2tost2< N, T2 >, OpMult >
class  ResultType< t2tost2< N, T >, st2tot2< N, T2 >, OpMult >
class  ResultType< st2tot2< N, T >, stensor< N, T2 >, OpMult >
 Partial specialisation for st2tot2 and stensor multiplication. More...
class  ResultType< tensor< N, T2 >, st2tot2< N, T >, OpMult >
 Partial specialisation for tensor and st2tot2 multiplication. More...
struct  ST2toT2ST2toST2ProductExpr
 empty structure used for partial specialisation of the Expr class More...
struct  Expr< ST2toT2ResultType, ST2toT2ST2toST2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< ST2toT2ResultType, ST2toT2ST2toST2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< ST2toT2ResultType, ST2toT2ST2toST2ProductExpr< 3u > >
 partial specialisation in 3D More...
struct  ST2toT2StensorProductExpr
struct  Expr< TensorResultType, ST2toT2StensorProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< TensorResultType, ST2toT2StensorProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< TensorResultType, ST2toT2StensorProductExpr< 3u > >
 partial specialisation in 3D More...
struct  ST2toT2T2toST2ProductExpr
struct  Expr< T2toT2ResultType, ST2toT2T2toST2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< T2toT2ResultType, ST2toT2T2toST2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< T2toT2ResultType, ST2toT2T2toST2ProductExpr< 3u > >
 partial specialisation in 3D More...
struct  Expr< ST2toT2ResultType, StensorProductLeftDerivativeExpr< 1u > >
 partial specialisation in 2D More...
struct  Expr< ST2toT2ResultType, StensorProductLeftDerivativeExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< ST2toT2ResultType, StensorProductLeftDerivativeExpr< 3u > >
 partial specialisation in 3D More...
struct  Expr< ST2toT2ResultType, StensorProductRightDerivativeExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< ST2toT2ResultType, StensorProductRightDerivativeExpr< 2u > >
 partial specialisation in 3D More...
struct  Expr< ST2toT2ResultType, StensorProductRightDerivativeExpr< 3u > >
 partial specialisation in 3D More...
struct  T2toST2ST2toT2ProductExpr
struct  Expr< ST2toST2ResultType, T2toST2ST2toT2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< ST2toST2ResultType, T2toST2ST2toT2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< ST2toST2ResultType, T2toST2ST2toT2ProductExpr< 3u > >
 partial specialisation in 3D More...
struct  T2toT2ST2toT2ProductExpr
 empty structure used for partial specialisation of the Expr class More...
struct  Expr< ST2toT2ResultType, T2toT2ST2toT2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< ST2toT2ResultType, T2toT2ST2toT2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< ST2toT2ResultType, T2toT2ST2toT2ProductExpr< 3u > >
 partial specialisation in 3D More...
struct  TensorST2toT2ProductExpr
 empty structure used for partial specialisation of the Expr class More...
struct  Expr< StensorResultType, TensorST2toT2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< StensorResultType, TensorST2toT2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< StensorResultType, TensorST2toT2ProductExpr< 3u > >
 partial specialisation in 2D More...
struct  DerivativeTypeDispatcher< StensorTag, ScalarTag, StensorType, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< ScalarTag, StensorTag, ScalarType, StensorType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  stensor_common
 an helper structure inherited by the stensor class More...
class  StensorTag
 Helper class to characterise stensors. More...
struct  StensorConceptBase
 an helper class that simply exposes publically a member named ConceptTag as an alias to StensorTag. More...
struct  ConceptRebind< StensorTag, Type >
 partial specialisation for symmetric tensors More...
class  ComputeBinaryOperationHandler< StensorTag, StensorTag, A, B, OpMult >
class  ComputeBinaryOperationHandler< StensorTag, StensorTag, A, B, OpDiadicProduct >
struct  ComputeUnaryResult_< StensorTag, UnaryOperatorTag, A, OpNeg >
class  ComputeBinaryOperationHandler< StensorTag, StensorTag, A, B, OpDotProduct >
class  StensorProductExprBase
struct  StensorProductExpr1D
struct  StensorProductExpr2D
struct  StensorProductExpr3D
class  UnaryResultType< stensor< N, T >, OpNeg >
class  ComputeBinaryOperationResult< StensorTag, ScalarTag, stensor< N, T >, Scal, OpMult >
 Partial specialisation for stensor and scalars operations. More...
class  ComputeBinaryOperationResult< StensorTag, ScalarTag, stensor< N, T >, Scal, OpDiv >
 Partial specialisation for stensor and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, StensorTag, Scal, stensor< N, T >, OpMult >
 Partial specialisation for stensor and scalars operations. More...
class  ResultType< stensor< N, T >, stensor< N, T2 >, OpPlus >
 Partial specialisation for stensor. More...
class  ResultType< stensor< N, T >, stensor< N, T2 >, OpMinus >
 Partial specialisation for stensor. More...
class  ResultType< stensor< N, T >, stensor< N, T2 >, OpMult >
 Partial specialisation for stensor. More...
class  ResultType< stensor< N, T >, stensor< N, T2 >, OpDiadicProduct >
 Partial specialisation for stensor. More...
class  ResultType< stensor< N, T >, stensor< N, T2 >, OpDotProduct >
 Partial specialisation for stensor. More...
struct  RightCauchyGreenTensorDerivativeExpr
 forward declaration More...
struct  LeftCauchyGreenTensorDerivativeExpr
 forward declaration More...
struct  DerivativeTypeDispatcher< T2toST2Tag, ScalarTag, T2toST2Type, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< ScalarTag, T2toST2Tag, ScalarType, T2toST2Type >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< StensorTag, TensorTag, StensorType1, TensorType2 >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  ConvertKirchhoffStressJaumanRateModuliToKirchhoffStressDerivative
struct  ConvertKirchhoffStressJaumanRateModuliToKirchhoffStressDerivative< 1u, T >
 partial specialisation in 1D More...
struct  ConvertKirchhoffStressJaumanRateModuliToKirchhoffStressDerivative< 2u, T >
 partial specialisation in 2D More...
struct  ConvertKirchhoffStressJaumanRateModuliToKirchhoffStressDerivative< 3u, T >
 partial specialisation in 3D More...
struct  Expr< T2toST2Type, LeftCauchyGreenTensorDerivativeExpr< 1u > >
struct  Expr< T2toST2Type, LeftCauchyGreenTensorDerivativeExpr< 2u > >
struct  Expr< T2toST2Type, LeftCauchyGreenTensorDerivativeExpr< 3u > >
struct  Expr< T2toST2Type, RightCauchyGreenTensorDerivativeExpr< 1u > >
struct  Expr< T2toST2Type, RightCauchyGreenTensorDerivativeExpr< 2u > >
struct  Expr< T2toST2Type, RightCauchyGreenTensorDerivativeExpr< 3u > >
struct  ST2toST2T2toST2ProductExpr
 empty structure used for partial specialisation of the Expr class More...
struct  Expr< T2toST2ResultType, ST2toST2T2toST2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< T2toST2ResultType, ST2toST2T2toST2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< T2toST2ResultType, ST2toST2T2toST2ProductExpr< 3u > >
 partial specialisation in 3D More...
struct  StensorT2toST2ProductExpr
 empty structure used for partial specialisation of the Expr class More...
struct  Expr< TensorResultType, StensorT2toST2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< TensorResultType, StensorT2toST2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< TensorResultType, StensorT2toST2ProductExpr< 3u > >
 partial specialisation in 3D More...
class  T2toST2Tag
 Helper class to characterise t2tost2. More...
struct  T2toST2ConceptBase
 an helper class that simply exposes publically a member named ConceptTag as an alias to T2toST2Tag. More...
struct  ConceptRebind< T2toST2Tag, Type >
 partial specialisation for T2toST2 More...
class  ComputeBinaryOperationHandler< ST2toST2Tag, T2toST2Tag, A, B, OpMult >
class  ComputeBinaryOperationHandler< T2toST2Tag, T2toT2Tag, A, B, OpMult >
class  ComputeBinaryOperationHandler< StensorTag, TensorTag, A, B, OpDiadicProduct >
class  ComputeBinaryOperationHandler< T2toST2Tag, TensorTag, A, B, OpMult >
class  ComputeBinaryOperationHandler< StensorTag, T2toST2Tag, A, B, OpMult >
struct  ComputeUnaryResult_< T2toST2Tag, UnaryOperatorTag, A, OpNeg >
class  UnaryResultType< t2tost2< N, T >, OpNeg >
class  ComputeBinaryOperationResult< T2toST2Tag, ScalarTag, t2tost2< N, T >, Scal, OpMult >
 Partial specialisation for t2tost2 and scalars operations. More...
class  ComputeBinaryOperationResult< T2toST2Tag, ScalarTag, t2tost2< N, T >, Scal, OpDiv >
 Partial specialisation for t2tost2 and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, T2toST2Tag, Scal, t2tost2< N, T >, OpMult >
 Partial specialisation for t2tost2 and scalars operations. More...
class  ResultType< t2tost2< N, T >, t2tost2< N, T2 >, OpPlus >
 Partial specialisation for t2tost2. More...
class  ResultType< t2tost2< N, T >, t2tost2< N, T2 >, OpMinus >
 Partial specialisation for t2tost2. More...
class  ResultType< stensor< N, T >, tensor< N, T2 >, OpDiadicProduct >
 Partial specialisation for stensor. More...
class  ResultType< st2tost2< N, T >, t2tost2< N, T2 >, OpMult >
 Partial specialisation for t2tost2 and t2tost2 multiplication. More...
class  ResultType< t2tost2< N, T >, t2tot2< N, T2 >, OpMult >
 Partial specialisation for t2tost2 and t2tot2 multiplication. More...
class  ResultType< t2tost2< N, T >, tensor< N, T2 >, OpMult >
 Partial specialisation for t2tost2 and tensor multiplication. More...
class  ResultType< stensor< N, T2 >, t2tost2< N, T >, OpMult >
 Partial specialisation for tensor and t2tost2 multiplication. More...
struct  T2toST2T2toT2ProductExpr
 empty structure used for partial specialisation of the Expr class More...
struct  Expr< T2toST2ResultType, T2toST2T2toT2ProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< T2toST2ResultType, T2toST2T2toT2ProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< T2toST2ResultType, T2toST2T2toT2ProductExpr< 3u > >
 partial specialisation in 3D More...
struct  T2toST2TensorProductExpr
 empty structure used for partial specialisation of the Expr class More...
struct  Expr< StensorResultType, T2toST2TensorProductExpr< 1u > >
 partial specialisation in 1D More...
struct  Expr< StensorResultType, T2toST2TensorProductExpr< 2u > >
 partial specialisation in 2D More...
struct  Expr< StensorResultType, T2toST2TensorProductExpr< 3u > >
 partial specialisation in 2D More...
struct  TensorProductLeftDerivativeExpr
struct  TensorProductRightDerivativeExpr
struct  DerivativeTypeDispatcher< T2toT2Tag, ScalarTag, T2toT2Type, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< ScalarTag, T2toT2Tag, ScalarType, T2toT2Type >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< TensorTag, TensorTag, TensorType1, TensorType2 >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
class  T2toT2Tag
 Helper class to characterise t2tot2. More...
struct  T2toT2ConceptBase
 an helper class that simply exposes publically a member named ConceptTag as an alias to T2toT2Tag. More...
struct  ConceptRebind< T2toT2Tag, Type >
 partial specialisation for fourth order tensor More...
class  ComputeBinaryOperationHandler< T2toT2Tag, T2toT2Tag, A, B, OpMult >
 partial specialisation of ComputeBinaryOperationHandler for T2toT2-T2toT2 operations More...
class  ComputeBinaryOperationHandler< T2toT2Tag, TensorTag, A, B, OpMult >
 partial specialisation of ComputeBinaryOperationHandler for T2toT2-Tensor operations More...
class  ComputeBinaryOperationHandler< TensorTag, T2toT2Tag, A, B, OpMult >
struct  ComputeUnaryResult_< T2toT2Tag, UnaryOperatorTag, A, OpNeg >
 partial specialisation of ComputeUnaryResult_ for T2toT2's object More...
class  UnaryResultType< t2tot2< N, T >, OpNeg >
class  ComputeBinaryOperationResult< T2toT2Tag, ScalarTag, t2tot2< N, T >, Scal, OpMult >
 Partial specialisation for t2tot2 and scalars operations. More...
class  ComputeBinaryOperationResult< T2toT2Tag, ScalarTag, t2tot2< N, T >, Scal, OpDiv >
 Partial specialisation for t2tot2 and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, T2toT2Tag, Scal, t2tot2< N, T >, OpMult >
 Partial specialisation for t2tot2 and scalars operations. More...
class  ResultType< t2tot2< N, T >, t2tot2< N, T2 >, OpPlus >
 Partial specialisation for t2tot2. More...
class  ResultType< t2tot2< N, T >, t2tot2< N, T2 >, OpMinus >
 Partial specialisation for t2tot2. More...
class  ResultType< t2tot2< N, T >, tensor< N, T2 >, OpMult >
 Partial specialisation for t2tot2 and tensor multiplication. More...
class  ResultType< tensor< N, T2 >, t2tot2< N, T >, OpMult >
 Partial specialisation for tensor and t2tot2 multiplication. More...
class  ResultType< t2tot2< N, T >, t2tot2< N, T2 >, OpMult >
 Partial specialisation for t2tot2 and t2tot2 multiplication. More...
struct  T2toT2T2toT2ProductExpr
struct  Expr< T2toT2ResultType, T2toT2T2toT2ProductExpr< 1u > >
struct  Expr< T2toT2ResultType, T2toT2T2toT2ProductExpr< 2u > >
struct  Expr< T2toT2ResultType, T2toT2T2toT2ProductExpr< 3u > >
struct  T2toT2TensorProductExpr
struct  Expr< TensorResultType, T2toT2TensorProductExpr< 1u > >
struct  Expr< TensorResultType, T2toT2TensorProductExpr< 2u > >
struct  Expr< TensorResultType, T2toT2TensorProductExpr< 3u > >
struct  Expr< T2toT2ResultType, TensorProductLeftDerivativeExpr< 1u > >
struct  Expr< T2toT2ResultType, TensorProductLeftDerivativeExpr< 2u > >
struct  Expr< T2toT2ResultType, TensorProductLeftDerivativeExpr< 3u > >
struct  Expr< T2toT2ResultType, TensorProductRightDerivativeExpr< 1u > >
struct  Expr< T2toT2ResultType, TensorProductRightDerivativeExpr< 2u > >
struct  Expr< T2toT2ResultType, TensorProductRightDerivativeExpr< 3u > >
struct  TensorT2toT2ProductExpr
struct  Expr< TensorResultType, TensorT2toT2ProductExpr< 1u > >
struct  Expr< TensorResultType, TensorT2toT2ProductExpr< 2u > >
struct  Expr< TensorResultType, TensorT2toT2ProductExpr< 3u > >
struct  DerivativeTypeDispatcher< TensorTag, ScalarTag, TensorType, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< ScalarTag, TensorTag, ScalarType, TensorType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  MatrixViewFromTensorExpr
 forward declaration More...
struct  Expr< tmatrix< 3u, 3u, numeric_type< TensorType > >, MatrixViewFromTensorExpr< TensorType > >
class  TensorTag
 an helper class to characterize tensors. More...
struct  TensorInvalidIndexException
 exception thrown if invalid index is given More...
struct  TensorInvalidIndexesException
 exception thrown if invalid indexes were given More...
struct  TensorInvalidInitializerListSizeException
 exception thrown if an std::initializer_list with no appropriate size is affected to a tensor. More...
struct  TensorConceptBase
 base class which implements the tensor concept More...
struct  ConceptRebind< TensorTag, Type >
 partial specialisation for tensors More...
struct  TensorTransposeExpr1D
 forward declarations, see TensorTransposeExpr.hxx More...
struct  TensorTransposeExpr2D
struct  TensorTransposeExpr3D
class  ComputeBinaryOperationHandler< TensorTag, TensorTag, A, B, OpMult >
class  ComputeBinaryOperationHandler< TensorTag, TensorTag, A, B, OpDotProduct >
class  ComputeBinaryOperationHandler< TensorTag, StensorTag, A, B, Op >
class  ComputeBinaryOperationHandler< StensorTag, TensorTag, A, B, Op >
class  ComputeBinaryOperationHandler< TensorTag, StensorTag, A, B, OpMult >
class  ComputeBinaryOperationHandler< StensorTag, TensorTag, A, B, OpMult >
class  ComputeBinaryOperationHandler< TensorTag, TensorTag, A, B, OpDiadicProduct >
struct  ComputeUnaryResult_< TensorTag, UnaryOperatorTag, A, OpNeg >
struct  TensorProductExprBase
struct  TensorProductExpr1D
struct  TensorProductExpr2D
struct  TensorProductExpr3D
class  UnaryResultType< tensor< N, T >, OpNeg >
class  ComputeBinaryOperationResult< TensorTag, ScalarTag, tensor< N, T >, Scal, OpMult >
 Partial specialisation for tensor and scalars operations. More...
class  ComputeBinaryOperationResult< TensorTag, ScalarTag, tensor< N, T >, Scal, OpDiv >
 Partial specialisation for tensor and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, TensorTag, Scal, tensor< N, T >, OpMult >
 Partial specialisation for tensor and scalars operations. More...
class  ResultType< tensor< N, T >, tensor< N, T2 >, OpPlus >
 Partial specialisation for tensor. More...
class  ResultType< tensor< N, T >, tensor< N, T2 >, OpMinus >
 Partial specialisation for tensor. More...
class  ResultType< tensor< N, T >, tensor< N, T2 >, OpMult >
 Partial specialisation for tensor. More...
class  ResultType< stensor< N, T >, tensor< N, T2 >, OpMult >
 Partial specialisation for tensor. More...
class  ResultType< tensor< N, T >, stensor< N, T2 >, OpMult >
 Partial specialisation for tensor. More...
class  ResultType< tensor< N, T >, tensor< N, T2 >, OpDiadicProduct >
 Partial specialisation for tensor. More...
class  ResultType< tensor< N, T >, stensor< N, T2 >, OpPlus >
 Partial specialisation for tensor. More...
class  ResultType< stensor< N, T2 >, tensor< N, T >, OpPlus >
 Partial specialisation for tensor. More...
class  ResultType< tensor< N, T >, stensor< N, T2 >, OpMinus >
 Partial specialisation for tensor. More...
class  ResultType< stensor< N, T2 >, tensor< N, T >, OpMinus >
 Partial specialisation for tensor. More...
class  ResultType< tensor< N, T >, tensor< N, T2 >, OpDotProduct >
 Partial specialisation for tensor. More...
struct  TensorTransposeExprBase
struct  TensorViewFromStensorExpr
 tensor view from a symmetric tensor More...
struct  Expr< tensor< N, ValueType >, TensorViewFromStensorExpr< T > >
struct  TensorViewFromStensor
struct  StackAllocatedTinyBroyden2SolverWorkspace
 class allocating on the stack a workspace usable by the TinyBroydenSolver2 class. More...
struct  TinyBroyden2Solver
 A class based on the curiously recurring template pattern (CRTP) to solve system of non linear equations using the second Broyden algorithm. More...
struct  StackAllocatedTinyBroydenSolverWorkspace
 class allocating on the stack a workspace usable by the TinyBroydenSolver class. More...
struct  TinyBroydenSolver
 A class based on the curiously recurring template pattern (CRTP) to solve system of non linear equations using the Broyden algorithm. More...
struct  StackAllocatedTinyLevenbergMarquardtSolverWorkspace
 class allocating on the stack a workspace usable by the TinyLevenbergMarquardtSolver class. More...
struct  TinyLevenbergMarquardtSolver
 A class based on the curiously recurring template pattern (CRTP) to solve system of non linear equations using the Newton-Raphson algorithm. More...
struct  TinyMatrixInvert
struct  TinyMatrixSolveBase
struct  TinyMatrixSolve
struct  TinyMatrixSolve< 1u, T, use_exceptions, perform_runtime_checks >
struct  TinyMatrixSolve< 2u, T, use_exceptions, perform_runtime_checks >
struct  TinyMatrixSolve< 3u, T, use_exceptions, perform_runtime_checks >
struct  StackAllocatedTinyNewtonRaphsonSolverWorkspace
 class allocating on the stack a workspace usable by the TinyNewtonRaphsonSolver class. More...
struct  TinyNewtonRaphsonSolver
 A class based on the curiously recurring template pattern (CRTP) to solve system of non linear equations using the Newton-Raphson algorithm. More...
struct  StackAllocatedTinyPowellDogLegBroydenSolverWorkspace
 class allocating on the stack a workspace usable by the TinyPowellDogLegBroydenSolver class. More...
struct  TinyPowellDogLegBroydenSolver
 A class based on the curiously recurring template pattern (CRTP) to solve system of non linear equations using the Newton-Raphson algorithm coupled with the Powell' dog leg algorithm. More...
struct  StackAllocatedTinyPowellDogLegNewtonRaphsonSolverWorkspace
 class allocating on the stack a workspace usable by the TinyPowellDogLegNewtonRaphsonSolver class. More...
struct  TinyPowellDogLegNewtonRaphsonSolver
 A class based on the curiously recurring template pattern (CRTP) to solve system of non linear equations using the Newton-Raphson algorithm coupled with the Powell' dog leg algorithm. More...
struct  DerivativeTypeDispatcher< MatrixTag, ScalarTag, tmatrix< N, M, TMatrixNumericType >, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< ScalarTag, MatrixTag, ScalarType, tmatrix< N, M, TMatrixNumericType > >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< VectorTag, VectorTag, tvector< N1, TVectorNumericTypeType1 >, tvector< N2, TVectorNumericTypeType2 > >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  IsTVectorScalarOperationValid
struct  DerivativeTypeDispatcher< VectorTag, ScalarTag, tvector< N, TVectorNumericType >, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  DerivativeTypeDispatcher< ScalarTag, VectorTag, ScalarType, tvector< N, TVectorNumericType > >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  TypeRebind
 this struct exposes standard types compatible with its argument. More...
struct  ScalarTypeRebind
 this struct exposes standard scalar types compatible with its argument. The exposed types use quantities if the argument does. More...
struct  CheckUnitCompatibility
struct  UnaryResultType< tvector< N, T >, OpNeg >
class  ComputeBinaryOperationResult< VectorTag, ScalarTag, tvector< N, T >, Scal, OpMult >
 Partial specialisation for tvector and scalars operations. More...
class  ComputeBinaryOperationResult< VectorTag, ScalarTag, tvector< N, T >, Scal, OpDiv >
 Partial specialisation for tvector and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, VectorTag, Scal, tvector< N, T >, OpMult >
 Partial specialisation for tvector and scalars operations. More...
class  ResultType< tvector< N, T >, tvector< N, T2 >, OpPlus >
 Partial specialisation for tvector. More...
class  ResultType< tvector< N, T >, tvector< N, T2 >, OpMinus >
 Partial specialisation for tvector. More...
class  ResultType< tvector< N, T >, tvector< N, T2 >, OpMult >
 Partial specialisation for tvector. More...
class  ResultType< tvector< N, T >, tvector< M, T2 >, OpDiadicProduct >
 Partial specialisation for tvector. More...
struct  ResultType< tvector< N, T >, tvector< N, T2 >, OpDotProduct >
 Partial specialisation for tvector. More...
struct  VectorDotProductHandle< tvector< N, T >, tvector< N, T2 > >
class  VectorTag
 Helper class to characterise vectors. More...
struct  VectorConceptBase
struct  ConceptRebind< VectorTag, Type >
 paratial specialisation for vectors More...
struct  VectorDotProductHandle
class  ComputeBinaryOperationHandler< VectorTag, VectorTag, A, B, OpDotProduct >
class  ComputeBinaryOperationHandler< VectorTag, VectorTag, A, B, OpDiadicProduct >
class  ComputeUnaryResult_< VectorTag, UnaryOperatorTag, A, OpNeg >
struct  UnaryResultType< vector< T >, OpNeg >
class  ComputeBinaryOperationResult< VectorTag, ScalarTag, vector< T >, Scal, OpMult >
 Partial specialisation for tvector and scalars operations. More...
class  ComputeBinaryOperationResult< ScalarTag, VectorTag, Scal, vector< T >, OpMult >
 Partial specialisation for tvector and scalars operations. More...
class  ResultType< vector< T >, vector< T2 >, OpDotProduct >
 Partial specialisation for vector. More...
class  ComputeBinaryOperationResult< VectorTag, ScalarTag, vector< T >, Scal, OpDiv >
 Partial specialisation for vector and scalars operations. More...
class  ResultType< vector< T >, vector< T2 >, OpDiadicProduct >
 Partial specialisation for vector. More...
class  ResultType< vector< T >, vector< T2 >, OpPlus >
 Partial specialisation for vector. More...
class  ResultType< vector< T >, vector< T2 >, OpMinus >
 Partial specialisation for vector. More...
class  ResultType< vector< T >, vector< T2 >, OpMult >
 Partial specialisation for vector. More...
struct  VectorVectorDotProduct
class  IndexingPolicyType
class  MemoryIndexingPolicyType

Concepts

concept  ArrayConcept
 definition of the ArrayConcept concept a class matching the array concept must expose the ArrayTag and have access operators.
concept  MappableMutableMathObjectUsingScatteredViewConcept
concept  MappableImmutableMathObjectUsingScatteredViewConcept
concept  MappableMathObjectUsingScatteredViewConcept
concept  MappableMutableMathObjectUsingCoalescedViewConcept
concept  MappableImmutableMathObjectUsingCoalescedViewConcept
concept  MappableMathObjectUsingCoalescedViewConcept
concept  FixedSizeArrayTypeDefininigArrayViewConcept
concept  ExpressionConcept
concept  StandardArithmeticTypeConcept
concept  FundamentalNumericTypeConcept
concept  ScalarConcept
concept  MutableScalarConcept
concept  ImmutableQuantityConcept
concept  QuantityConcept
concept  NoUnitImmutableQuantityConcept
concept  NoUnitQuantityConcept
concept  MathObjectConcept
concept  MatrixConcept
 definition of the MatrixConcept concept a class matching the matrix concept must expose the MatrixTag and have access operators.
concept  ST2toST2Concept
 definition of the ST2toST2Concept a class matching the stensor concept must expose the ST2toST2Tag and have access operators.
concept  NoUnitST2toST2Concept
 refinement of the ST2toST2Concept concept matched by st2tost2 which hold value types without unit
concept  StressST2toST2Concept
 refinement of the ST2toST2Concept concept matched by st2tost2 which hold value types compatible with a stress
concept  ST2toT2Concept
 definition of the ST2toT2Concept
concept  NoUnitST2toT2Concept
 refinement of the ST2toT2Concept concept matched by st2tot2 which hold value types without unit
concept  StressST2toT2Concept
 refinement of the ST2toT2Concept concept matched by st2tot2 which hold value types compatible with a stress
concept  StensorConcept
 definition of the StensorConcept a class matching the stensor concept must expose the StensorTag and have access operators.
concept  NoUnitStensorConcept
 refinement of the StensorConcept concept matched by symmetric tensors which hold value types without unit
concept  StressStensorConcept
 refinement of the StensorConcept concept matched by symmetric tensors which hold value types compatible with a stress
concept  T2toST2Concept
 definition of the T2toST2Concept a class matching the stensor concept must expose the T2toST2Tag and have access operators.
concept  NoUnitT2toST2Concept
 refinement of the T2toST2Concept concept matched by t2tost2 which hold value types without unit
concept  StressT2toST2Concept
 refinement of the T2toST2Concept concept matched by t2tost2 which hold value types compatible with a stress
concept  T2toT2Concept
 definition of the T2toT2Concept
concept  NoUnitT2toT2Concept
 refinement of the T2toT2Concept concept matched by t2tot2 which hold value types without unit
concept  StressT2toT2Concept
 refinement of the T2toT2Concept concept matched by t2tot2 which hold value types compatible with a stress
concept  TensorConcept
 definition of the StensorConcept a class matching the stensor concept must expose the StensorTag and have access operators.
concept  NoUnitTensorConcept
 refinement of the TensorConcept concept matched by tensor which hold value types without unit
concept  StressTensorConcept
 refinement of the TensorConcept concept matched by tensor which hold value types compatible with a stress
concept  VectorConcept
 definition of the VectorConcept concept a class matching the vector concept must expose the VectorTag and have access operators.

Typedefs

template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
using ScatteredView
 view storing one pointer per component of the mapped object
template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using ConstScatteredView
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
using StridedView
 view storing a pointer to the first component of the mapped object and the stride between two successive components
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using ConstStridedView
template<typename MappedType, typename SizeType, SizeType N>
using StridedViewsFixedSizeVector
template<typename MappedType, typename IndexingPolicyType>
using selectViewArrayBase
 a simple alias
template<typename MappedType>
using ViewStorageType
template<typename MappedType>
using ViewDataPointerType
template<typename MappedType>
using ViewConstDataPointerType = const ViewStorageType<MappedType>*
template<ScalarConcept ScalarType>
using scalar_view
 view to a scalar
template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using ConstView
template<typename MappedType>
using ViewsArrayNumericType
 the numeric type used by the mapped type
template<typename MappedType>
using ViewsArrayStorageType
 the type of the values stored in the memory area: the base type of the numeric type for quantities, as for views (see ViewStorageType)
template<typename MappedType>
using ViewsArrayDataPointerType
 the pointer type used to build the view
template<typename MappedType, typename SizeType, SizeType N, SizeType Stride = getViewsArrayMinimalStride<MappedType>()>
using ViewsFixedSizeVector
template<FixedSizeArrayTypeDefininigArrayViewConcept ArrayType>
using StandardFixedSizeViewsArray
template<typename ValueType>
using Complex = std::complex<ValueType>
 an alias std::complex.
template<typename ObjectType>
using EvaluationResult
 a simple alias
template<typename T>
using base_type = typename BaseType<T>::type
template<ImmutableQuantityConcept T>
using quantity_unit = typename QuantityTraits<T>::UnitType
template<ImmutableQuantityConcept T>
using qt_rebind = qt<quantity_unit<T>, base_type<T>>
template<FundamentalNumericTypeConcept ValueType, int N1 = 0, int N2 = 0, int N3 = 0, int N4 = 0, int N5 = 0, int N6 = 0, int N7 = 0, unsigned int D1 = 1, unsigned int D2 = 1, unsigned int D3 = 1, unsigned int D4 = 1, unsigned int D5 = 1, unsigned int D6 = 1, unsigned int D7 = 1>
using quantity
 a simple alias
template<bool use_qt, FundamentalNumericTypeConcept ValueType, int N1 = 0, int N2 = 0, int N3 = 0, int N4 = 0, int N5 = 0, int N6 = 0, int N7 = 0, unsigned int D1 = 1, unsigned int D2 = 1, unsigned int D3 = 1, unsigned int D4 = 1, unsigned int D5 = 1, unsigned int D6 = 1, unsigned int D7 = 1>
using quantity_or_base_type
 a simple alias
template<typename T>
using rotation_matrix = tmatrix<3, 3, base_type<T>>
 a simple alias
template<typename X, typename Y>
using promote_type = typename tfel::typetraits::Promote<X, Y>::type
template<typename T1, typename T2, typename Op>
using BinaryOperationResult
 an alias for the result of an binary operation
template<typename T1, typename T2, typename Op>
using BinaryOperationHandler
 an alias of the handler of an binary operation
template<typename T1, typename Op>
using UnaryOperationResult = typename ComputeUnaryResult<T1, Op>::Result
 an alias for the result of an unary operation
template<typename T1, typename Op>
using UnaryOperationHandler = typename ComputeUnaryResult<T1, Op>::Handle
 an alias of the handler of an unary operation
template<typename FunctionType, typename... VariableTypes>
using derivative_type
 a simple alias giving the type representing the derivative of an object of type FunctionType with respect to objects of the type given by the template argument pack VariableTypes.
template<typename MathObjectType>
using numeric_type
 a simple alias
template<typename MathObjectType>
using index_type
 a simple alias
template<typename A, typename B, typename Op>
using result_type = typename ResultType<A, B, Op>::type
 a simple alias
template<typename MathObjectType>
using invert_type
 a simple alias to compute the type of the inverse of a type
template<typename A, typename Op>
using unary_result_type = typename UnaryResultType<A, Op>::type
 a simple alias
template<typename MatrixType>
using MatrixTraits
 a simple alias for backward compatibility with versions prior to 4.0
template<unsigned short N, typename T>
using ST2toST2View = View<st2tost2<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using ConstST2toST2View = ConstView<st2tost2<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using ST2toT2View = View<st2tot2<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using ConstST2toT2View = ConstView<st2tot2<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using StensorView = View<stensor<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using ConstStensorView = ConstView<stensor<N, T>>
 a simple alias for backward compatibility
template<typename StensorType>
using StensorTraits
 a simple alias for backward compatibility with versions prior to 4.0
template<typename StensorType>
using StensorNumType
 a simple alias for backward compatibility with versions prior to 4.0
template<unsigned short N, typename T>
using T2toST2View = View<t2tost2<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using ConstT2toST2View = ConstView<t2tost2<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using T2toT2View = View<t2tot2<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using ConstT2toT2View = ConstView<t2tot2<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using TensorView = View<tensor<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using ConstTensorView = ConstView<tensor<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, unsigned short M, typename T>
using TMatrixView = View<tmatrix<N, M, T>>
 a simple alias for backward compatibility
template<unsigned short N, unsigned short M, typename T>
using ConstTMatrixView = ConstView<tmatrix<N, M, T>>
 a simple alias for backward compatibility
template<unsigned short M, typename FunctionType, typename VariableType>
using 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 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 scattered_derivative_view_from_tiny_matrix
 a simple alias to a scattered view type on a derivative in tiny matrix of M columns.
template<unsigned short N, typename T>
using TVectorView = View<tvector<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using ConstTVectorView = ConstView<tvector<N, T>>
 a simple alias for backward compatibility
template<typename VectorType>
using VectorTraits
 a simple alias for backward compatibility with versions prior to 4.0
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
using ScatteredView
 view storing one pointer per component of the mapped object
template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using ConstScatteredView
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
using StridedView
 view storing a pointer to the first component of the mapped object and the stride between two successive components
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using ConstStridedView
template<typename MappedType, typename SizeType, SizeType N>
using StridedViewsFixedSizeVector

Functions

template<typename NumericType, typename IndexType>
std::ostream & operator<< (std::ostream &, const AitkenAccelerationAlgorithm< NumericType, IndexType > &)
 output stream operator
template<typename ArrayType>
TFEL_HOST_DEVICE constexpr bool implementsArrayConcept ()
 an helper function which returns if the given type implements the ArrayConcept.
template<typename ArrayPolicyType>
TFEL_HOST_DEVICE constexpr bool hasArrayPolicyFixedSizes ()
template<typename ArrayPolicyType>
constexpr auto getArrayPolicySize ()
template<typename ArrayPolicyType>
constexpr auto getArrayPolicyMinimalDataSize ()
template<typename ArrayPolicyType>
constexpr bool hasArrayPolicyFixedSizes ()
template<typename Array1, typename Array2, index_type< FixedSizeArrayDerivative< Array1, Array2 > >... I1, index_type< FixedSizeArrayDerivative< Array1, Array2 > >... I2>
numeric_type< FixedSizeArrayDerivative< Array1, Array2 > > & getValue (FixedSizeArrayDerivative< Array1, Array2 > &a, const std::array< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, Array1::indexing_policy::arity > &i1, const std::array< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, Array2::indexing_policy::arity > &i2, const std::integer_sequence< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, I1... > &, const std::integer_sequence< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, I2... > &)
template<typename Array1, typename Array2>
numeric_type< FixedSizeArrayDerivative< Array1, Array2 > > & getValue (FixedSizeArrayDerivative< Array1, Array2 > &a, const std::array< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, Array1::indexing_policy::arity > &i1, const std::array< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, Array2::indexing_policy::arity > &i2)
template<typename Array1, typename Array2, index_type< FixedSizeArrayDerivative< Array1, Array2 > >... I1, index_type< FixedSizeArrayDerivative< Array1, Array2 > >... I2>
const numeric_type< FixedSizeArrayDerivative< Array1, Array2 > > & getValue (const FixedSizeArrayDerivative< Array1, Array2 > &a, const std::array< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, Array1::indexing_policy::arity > &i1, const std::array< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, Array2::indexing_policy::arity > &i2, const std::integer_sequence< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, I1... > &, const std::integer_sequence< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, I2... > &)
template<typename Array1, typename Array2>
const numeric_type< FixedSizeArrayDerivative< Array1, Array2 > > & getValue (const FixedSizeArrayDerivative< Array1, Array2 > &a, const std::array< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, Array1::indexing_policy::arity > &i1, const std::array< index_type< FixedSizeArrayDerivative< Array1, Array2 > >, Array2::indexing_policy::arity > &i2)
template<typename Array11, typename Array12, typename Array21, typename Array22>
FixedSizeArrayDerivative< Array11, Array22 > operator* (const FixedSizeArrayDerivative< Array11, Array12 > &a, const FixedSizeArrayDerivative< Array21, Array22 > &b)
template<unsigned short M, unsigned short N, typename MatrixValueType, typename VectorValueType, typename Array2>
requires (Array2::indexing_policy::arity == 1)
TFEL_HOST_DEVICE constexpr auto operator* (const tmatrix< M, N, MatrixValueType > &m, const FixedSizeArrayDerivative< tvector< N, VectorValueType >, Array2 > &d) noexcept
 product of a matrix by the derivative of a vector with respect to an array. If the matrix is the derivative of a vector \(u\) with respect to a vector \(v\) and the derivative is the derivative of \(v\) with respect to an array \(a\), the result is the derivative of \(u\) with respect to \(a\) (chain rule).
template<typename IndexingPolicy>
constexpr auto getUnderlyingArrayMinimalSize ()
template<unsigned short N, typename T>
std::ostream & operator<< (std::ostream &, const fsarray< N, T > &)
template<typename IndexingPolicy, typename... Indices>
TFEL_HOST_DEVICE constexpr void checkIndicesValiditity () noexcept
 a simple function to check that the type of the indices are compatible with the given indexing policy
template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool checkIndexingPoliciesCompatiblity ()
 check if two indexing policies can be compatible.
template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool haveIndexingPoliciesTheSameMemoryLayout ()
template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool areIndexingPoliciesCompatibleAtRunTime (const IndexingPolicy1 &, const IndexingPolicy2 &)
template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr void checkIndexingPoliciesRuntimeCompatiblity (const IndexingPolicy1 &, const IndexingPolicy2 &)
 check if two indexing policies are compatible at runtime.
template<typename IndexingPolicy, typename... T, std::size_t... I>
constexpr auto buildIndexingPolicyFromTuple (const std::tuple< T... > &, const std::index_sequence< I... > &)
template<typename IndexingPolicy, typename... Args>
constexpr auto buildIndexingPolicyAndExtractPointerToData (Args &... args)
template<typename T>
TFEL_HOST_DEVICE constexpr bool hasIndexingPolicy ()
 a simple metafunction which looks if the given type provides an internal type called indexing_policy
template<typename IndexingPolicy1, typename IndexingPolicy2>
constexpr bool checkIndexingPoliciesCompatiblity ()
 check if two indexing policies can be compatible.
template<typename IndexingPolicy1, typename IndexingPolicy2>
constexpr bool haveIndexingPoliciesTheSameMemoryLayout ()
template<typename IndexingPolicy1, typename IndexingPolicy2>
constexpr bool areIndexingPoliciesCompatibleAtRunTime (const IndexingPolicy1 &p1, const IndexingPolicy2 &p2)
template<typename IndexingPolicy1, typename IndexingPolicy2>
constexpr void checkIndexingPoliciesRuntimeCompatiblity (const IndexingPolicy1 &p1, const IndexingPolicy2 &p2)
 check if two indexing policies are compatible at runtime.
template<typename T>
constexpr bool hasIndexingPolicy ()
 a simple metafunction which looks if the given type provides an internal type called indexing_policy
template<typename UnaryOperator, typename FirstArgument>
TFEL_HOST_DEVICE constexpr MultiIndicesUnaryOperatorFunctor< UnaryOperator, FirstArgument > makeMultiIndicesUnaryOperatorFunctor (FirstArgument &a)
template<typename UnaryOperator, typename FirstArgument>
TFEL_HOST_DEVICE constexpr MultiIndicesUnaryOperatorFunctor< UnaryOperator, FirstArgument > makeMultiIndicesUnaryOperatorFunctor (const UnaryOperator &o, FirstArgument &a)
template<typename BinaryOperator, typename FirstArgument, typename SecondArgument>
TFEL_HOST_DEVICE constexpr MultiIndicesBinaryOperatorFunctor< BinaryOperator, FirstArgument, SecondArgument > makeMultiIndicesBinaryOperatorFunctor (FirstArgument &a, SecondArgument &b)
template<typename BinaryOperator, typename FirstArgument, typename SecondArgument>
TFEL_HOST_DEVICE constexpr MultiIndicesBinaryOperatorFunctor< BinaryOperator, FirstArgument, SecondArgument > makeMultiIndicesBinaryOperatorFunctor (const BinaryOperator &o, FirstArgument &a, const SecondArgument &b)
template<typename T>
std::ostream & operator<< (std::ostream &, const runtime_array< T > &)
template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ((!std::is_const_v<MappedType>)&&( std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr ScatteredView< MappedType, IndexingPolicyType > map (std::span< const ViewDataPointerType< MappedType >, indexing_policy_size< IndexingPolicyType > > ptrs)
 return a scattered view from a list of pointers
template<MappableImmutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ((std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes))
TFEL_HOST_DEVICE constexpr ScatteredView< MappedType, IndexingPolicyType > map (std::span< const ViewConstDataPointerType< std::remove_cv_t< MappedType > >, indexing_policy_size< IndexingPolicyType > > ptrs)
 return an immutable scattered view from a list of pointers
template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ((!std::is_const_v<MappedType>)&&( std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr ScatteredView< MappedType, IndexingPolicyType > map (std::array< ViewDataPointerType< MappedType >, indexing_policy_size< IndexingPolicyType > > &ptrs)
 return a scattered view from a list of pointers
template<MappableImmutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ((std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes))
TFEL_HOST_DEVICE constexpr ScatteredView< MappedType, IndexingPolicyType > map (const std::array< ViewConstDataPointerType< std::remove_cv_t< MappedType > >, indexing_policy_size< IndexingPolicyType > > &ptrs)
 return an immutable scattered view from a list of pointers
template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ((!std::is_const_v<MappedType>)&&( std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr StridedView< MappedType, IndexingPolicyType > map_strided (const ViewDataPointerType< MappedType > p, const std::size_t s)
 return a strided view from a base pointer and a stride
template<MappableImmutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ((std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes))
TFEL_HOST_DEVICE constexpr StridedView< MappedType, IndexingPolicyType > map_strided (const ViewConstDataPointerType< std::remove_cv_t< MappedType > > p, const std::size_t s)
template<typename ArrayType>
constexpr auto map_strided_array (const ViewsArrayDataPointerType< std::conditional_t< std::is_const_v< ArrayType >, const numeric_type< ArrayType >, numeric_type< ArrayType > > > p)
template<typename MappedType, typename MemoryIndexingPolicyType, typename ViewIndexingPolicyType>
std::ostream & operator<< (std::ostream &os, const StridedViewsArray< MappedType, MemoryIndexingPolicyType, ViewIndexingPolicyType > &a)
template<ScalarConcept ScalarType>
TFEL_HOST_DEVICE constexpr scalar_view< ScalarType > map (base_type< ScalarType > *const p)
template<ScalarConcept ScalarType>
TFEL_HOST_DEVICE constexpr scalar_view< ScalarType > map (base_type< ScalarType > &v)
template<ScalarConcept ScalarType>
TFEL_HOST_DEVICE constexpr scalar_view< const ScalarType > map (const base_type< ScalarType > *const p)
template<ScalarConcept ScalarType>
TFEL_HOST_DEVICE constexpr scalar_view< const ScalarType > map (const base_type< ScalarType > &v)
template<typename MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ( (!std::is_const_v<MappedType>)&&(!isScalar<MappedType>()) && (std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr View< MappedType, IndexingPolicyType > map (const ViewDataPointerType< MappedType > p)
 return a view from a memory area
template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ( (!isScalar<MappedType>()) && (std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes))
TFEL_HOST_DEVICE constexpr View< const MappedType, IndexingPolicyType > map (const ViewConstDataPointerType< MappedType > p)
template<typename MappedType, typename... Args>
constexpr auto canMakeViewFromLastArgument ()
 an helper metafunction which check of the last type of the type list is convertible to a pointer to a memory area that can be used to create a view.
template<typename MappedType, typename... Args>
constexpr auto canMakeConstViewFromLastArgument ()
 an helper metafunction which check of the last type of the type list is convertible to a const pointer to a memory area that can be used to create a view.
template<typename MappedType, typename... Args, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ( (!std::is_const_v<MappedType>)&&(!IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename MappedType::indexing_policy>()) && (canMakeViewFromLastArgument<MappedType, Args...>()))
TFEL_HOST_DEVICE constexpr View< MappedType, IndexingPolicyType > map (Args &&... args)
 return a view from a memory area
template<typename MappedType, typename... Args, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ( (!std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()) && (canMakeConstViewFromLastArgument<std::remove_cv_t<MappedType>, Args...>()))
TFEL_HOST_DEVICE constexpr View< const MappedType, IndexingPolicyType > map (const Args &... args)
 return a view from a memory area
template<typename MappedType>
constexpr auto getViewsArrayMinimalStride ()
 return the minimal size required to a store the given object
template<FixedSizeArrayTypeDefininigArrayViewConcept ArrayType>
constexpr auto map_array (const ViewsArrayDataPointerType< std::conditional_t< std::is_const_v< ArrayType >, const numeric_type< ArrayType >, numeric_type< ArrayType > > > p)
template<typename MappedType, typename MemoryIndexingPolicyType, typename ViewIndexingPolicyType>
std::ostream & operator<< (std::ostream &os, const ViewsArray< MappedType, MemoryIndexingPolicyType, ViewIndexingPolicyType > &a)
template<unsigned short N, typename T, const tvector< N, T >(*)(const tvector< N, T > &) f>
std::pair< bool, tvector< N, T > > broyden (const tvector< N, T > &, tmatrix< N, N, T > &, const T, const unsigned short)
template<unsigned short N, typename T, const tvector< N, T >(*)(const tvector< N, T > &) f>
std::pair< bool, tvector< N, T > > broyden (const tvector< N, T > &, const T, const unsigned short)
template<unsigned short N, typename T, const tvector< N, T >(*)(const tvector< N, T > &) f>
std::pair< bool, tvector< N, T > > broyden2 (const tvector< N, T > &, tmatrix< N, N, T > &, const T, const unsigned short)
template<unsigned short N, typename T, const tvector< N, T >(*)(const tvector< N, T > &) f>
std::pair< bool, tvector< N, T > > broyden2 (const tvector< N, T > &, const T, const unsigned short)
template<bool extrapolate, typename CollocationPointContainer, typename AbscissaType>
constexpr auto computeCubicSplineInterpolation (const CollocationPointContainer &, const AbscissaType)
template<bool extrapolate, typename CollocationPointContainer, typename AbscissaType>
constexpr auto computeCubicSplineInterpolationAndDerivative (const CollocationPointContainer &, const AbscissaType)
template<typename T>
void geometricDiscretization (T &v, const typename T::value_type, const typename T::value_type, const typename T::value_type, const typename T::value_type, const typename T::size_type)
 discretize a segment into a fixed number of elements trying to satisfy as much as possible given discretization densities at the beginning and the end of the segment. Elements size grows according to a geometric progression.
template<typename ResultType, typename Operation>
TFEL_HOST_DEVICE constexpr ResultType eval (const Expr< ResultType, Operation > &e)
 evaluate an expression
template<typename T1>
TFEL_HOST_DEVICE constexpr auto operator- (T1 &&a) noexcept -> UnaryOperationHandler< decltype(a), OpNeg > requires((!isScalar< T1 >()) &&(isUnaryOperationResultTypeValid< decltype(a), OpNeg >()) &&(!isInvalid< UnaryOperationHandler< decltype(a), OpNeg > >()))
 negate a mathematical object
template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto operator+ (T1 &&a, T2 &&b) noexcept -> BinaryOperationHandler< decltype(a), decltype(b), OpPlus > requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpPlus >()) &&(!((isScalar< T1 >()) &&(isScalar< T2 >()))))
 add to mathematical object
template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto operator- (T1 &&a, T2 &&b) noexcept -> BinaryOperationHandler< decltype(a), decltype(b), OpMinus > requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpMinus >()) &&(!((isScalar< T1 >()) &&(isScalar< T2 >()))))
 substract to mathematical object
template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto operator* (T1 &&a, T2 &&b) noexcept -> BinaryOperationHandler< decltype(a), decltype(b), OpMult > requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpMult >()) &&(!((isScalar< T1 >()) &&(isScalar< T2 >()))))
 multiply to mathematical object
template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto operator/ (T1 &&a, T2 &&b) noexcept -> BinaryOperationHandler< decltype(a), decltype(b), OpDiv > requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpDiv >()) &&(!((isScalar< T1 >()) &&(isScalar< T2 >()))))
 divide a mathematical object by another
template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto operator^ (T1 &&a, T2 &&b) noexcept -> BinaryOperationHandler< decltype(a), decltype(b), OpDiadicProduct > requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpDiadicProduct >()) &&(!((isScalar< T1 >()) &&(isScalar< T2 >()))))
 diadic product between two mathematical objects
template<typename real>
TFEL_MATH_INLINE real regularisedFischerBurmeisterFunction (const real &, const real &, const real &=real{})
 return a regularised version of the Fischer-Burmeister function defined by: [ f\left(x,y\right)=x+y-\sqrt{x^{2}+y^{2}+\varepsilon^{2}} ] This function is such that: [ f\left(x,y\right)=0 \Rightarrow x\geq 0, y\geq 0 and 2\,x\,y=\varepsilon^{2} ]
template<typename real>
TFEL_MATH_INLINE std::tuple< real, real > regularisedFischerBurmeisterFunctionFirstDerivatives (const real &, const real &, const real &)
template<typename real>
TFEL_MATH_INLINE real squaredFischerBurmeisterFunction (const real &, const real &)
template<typename real>
TFEL_MATH_INLINE std::tuple< real, real > squaredFischerBurmeisterFunctionFirstDerivatives (const real &, const real &)
template<typename real>
real regularisedFischerBurmeisterFunction (const real &x, const real &y, const real &e)
 return a regularised version of the Fischer-Burmeister function defined by: [ f\left(x,y\right)=x+y-\sqrt{x^{2}+y^{2}+\varepsilon^{2}} ] This function is such that: [ f\left(x,y\right)=0 \Rightarrow x\geq 0, y\geq 0 and 2\,x\,y=\varepsilon^{2} ]
template<typename real>
std::tuple< real, real > regularisedFischerBurmeisterFunctionFirstDerivatives (const real &x, const real &y, const real &e)
template<typename real>
real squaredFischerBurmeisterFunction (const real &x, const real &y)
template<typename real>
std::tuple< real, real > squaredFischerBurmeisterFunctionFirstDerivatives (const real &x, const real &y)
template<typename A, typename B>
TFEL_HOST_DEVICE constexpr bool isAssignableTo ()
 an helper function around isAssignableTo
template<typename T>
TFEL_HOST_DEVICE constexpr auto isInvalid ()
 a simple wrapper around tfel::typetraits::IsInvalid
template<typename T>
TFEL_HOST_DEVICE constexpr auto isScalar ()
 a simple wrapper around tfel::typetraits::IsScalar
template<unit::UnitConcept UnitType, StandardArithmeticTypeConcept ValueType, typename OwnershipPolicy>
TFEL_HOST_DEVICE constexpr decltype(auto) base_type_cast (const Quantity< UnitType, ValueType, OwnershipPolicy > &v) noexcept
 cast the value to the base type
template<typename T>
TFEL_HOST_DEVICE constexpr bool isQuantity ()
 a function testing if a type is a quantity
template<unsigned short N>
TFEL_HOST_DEVICE constexpr unsigned short getStensorSize ()
 a small helper function around StensorDimeToSize
template<typename... T>
 fsarray (T &&... t) -> fsarray< sizeof...(T), std::common_type_t< T... > >
template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr std::tuple_element_t< i, fsarray< N, ValueType > > & get (fsarray< N, ValueType > &v) noexcept
 partial specialisation of std::get for tfel::math::fsarray
template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr const std::tuple_element_t< i, fsarray< N, ValueType > > & get (const fsarray< N, ValueType > &v) noexcept
 partial specialisation of std::get for tfel::math::fsarray
template<ScalarConcept NumericType>
TFEL_HOST_DEVICE constexpr auto abs (const NumericType &s) noexcept
template<ScalarConcept NumericType>
TFEL_HOST_DEVICE constexpr auto abs (const Complex< NumericType > &s)
 TFEL_MATH_RESULT_TYPE (unsigned short)
 TFEL_MATH_RESULT_TYPE (unsigned int)
 TFEL_MATH_RESULT_TYPE (long unsigned int)
 TFEL_MATH_RESULT_TYPE (short)
 TFEL_MATH_RESULT_TYPE (int)
 TFEL_MATH_RESULT_TYPE (long int)
 TFEL_MATH_RESULT_TYPE (float)
 TFEL_MATH_RESULT_TYPE (double)
 TFEL_MATH_RESULT_TYPE (long double)
template<typename T>
requires ((tfel::typetraits::isScalar<T>()) && (!tfel::typetraits::IsComplex<T>::cond))
TFEL_HOST_DEVICE constexpr auto conj (const T src) noexcept
template<typename T>
requires ((tfel::typetraits::isScalar<T>()) && (!tfel::typetraits::IsComplex<T>::cond))
TFEL_HOST_DEVICE constexpr auto real (const T src) noexcept
 TFEL_MATH_RESULT_TYPE_COMPLEX (unsigned short)
 TFEL_MATH_RESULT_TYPE_COMPLEX (unsigned int)
 TFEL_MATH_RESULT_TYPE_COMPLEX (long unsigned int)
 TFEL_MATH_RESULT_TYPE_COMPLEX (short)
 TFEL_MATH_RESULT_TYPE_COMPLEX (int)
 TFEL_MATH_RESULT_TYPE_COMPLEX (long int)
 TFEL_MATH_RESULT_TYPE_COMPLEX (float)
 TFEL_MATH_RESULT_TYPE_COMPLEX (double)
 TFEL_MATH_RESULT_TYPE_COMPLEX (long double)
template<std::floating_point ScalarType>
TFEL_HOST_DEVICE constexpr bool areAlmostEqual (const ScalarType &eps, const ScalarType &a, const ScalarType &b)
template<ImmutableQuantityConcept QuantityType>
requires (std::floating_point<base_type<QuantityType>>)
TFEL_HOST_DEVICE constexpr bool areAlmostEqual (const base_type< QuantityType > &eps, const QuantityType &a, const QuantityType &b)
template<typename T1, typename T2, typename Op>
TFEL_HOST_DEVICE constexpr bool isBinaryOperationResultTypeValid ()
 a metafunction returning true if the result of the binary operation is valid
template<typename T>
TFEL_HOST_DEVICE constexpr bool hasConceptTag ()
 metafunction returning of the given type defines a type called ConceptTag.
template<typename T>
constexpr bool hasConceptTag ()
 metafunction returning of the given type defines a type called ConceptTag.
template<typename T1, typename Op>
TFEL_HOST_DEVICE constexpr bool isUnaryOperationResultTypeValid ()
 an alias
template<typename FunctionType, typename VariableType, typename ScalarType>
derivative_type< std::invoke_result_t< FunctionType, VariableType >, VariableType > computeNumericalDerivative (const FunctionType &, const VariableType &, const ScalarType &)
 compute a numerical approximation of the derivative a a function with respect to a variable with a centered finite difference scheme.
template<typename iterator_base>
DifferenceRandomAccessIterator< iterator_base > operator+ (const typename DifferenceRandomAccessIterator< iterator_base >::difference_type n, const DifferenceRandomAccessIterator< iterator_base > p)
template<typename iterator_base>
DifferenceRandomAccessIterator< iterator_base > operator- (const typename DifferenceRandomAccessIterator< iterator_base >::difference_type n, const DifferenceRandomAccessIterator< iterator_base > p)
TFEL_HOST_DEVICE constexpr bool operator== (const EmptyRunTimeProperties &, const EmptyRunTimeProperties &)
TFEL_HOST_DEVICE constexpr bool operator!= (const EmptyRunTimeProperties &, const EmptyRunTimeProperties &)
void init_floating_point_exceptions ()
template<StandardArithmeticTypeConcept T>
TFEL_HOST_DEVICE constexpr T & base_type_cast (T &v) noexcept
 cast the value to the base type
template<StandardArithmeticTypeConcept T>
TFEL_HOST_DEVICE constexpr const T & base_type_cast (const T &v) noexcept
 cast the value to the base type
template<MathObjectConcept MathObjectType>
TFEL_HOST_DEVICE constexpr unsigned short getSpaceDimension ()
 an helper function to retrieve the space dimension associated with a math object.
template<MathObjectConcept MathObjectType1, MathObjectConcept... MathObjectTypes>
TFEL_HOST_DEVICE constexpr bool checkThatAllSpaceDimensionsAreEqual () noexcept
 an helper function checking if all the given math objects have the space dimension.
template<typename T>
rotation_matrix< T > getRandomRotationMatrix ()
template<typename iterator_base>
StridedRandomAccessIterator< iterator_base > operator+ (const typename StridedRandomAccessIterator< iterator_base >::difference_type n, const StridedRandomAccessIterator< iterator_base > p)
template<typename iterator_base>
StridedRandomAccessIterator< iterator_base > operator- (const typename StridedRandomAccessIterator< iterator_base >::difference_type n, const StridedRandomAccessIterator< iterator_base > p)
template<bool extrapolate, typename AbscissaContainer, typename ValueContainer, typename AbscissaType>
constexpr auto computeLinearInterpolation (const AbscissaContainer &, const ValueContainer &, const AbscissaType)
 compute a linear interpolation based on the given abscissae and values
template<bool extrapolate, typename AbscissaContainer, typename ValueContainer, typename AbscissaType>
constexpr auto computeLinearInterpolationAndDerivative (const AbscissaContainer &, const ValueContainer &, const AbscissaType)
 compute a linear interpolation based on the given abscissae and values and the associated derivative
template<typename ValueType>
 matrix (const std::initializer_list< std::initializer_list< ValueType > > &) -> matrix< ValueType >
 class template argument deduction
template<typename MatrixType>
TFEL_HOST_DEVICE constexpr bool implementsMatrixConcept ()
 an helper function which returns if the given type implements the MatrixConcept.
template<unsigned short N, unsigned short M, typename T>
constexpr tmatrix< M, N, T > transpose (const tmatrix< N, M, T > &m)
template<typename T, typename Operation>
constexpr auto det (const Expr< tmatrix< 2, 2, T >, Operation > &m)
template<typename T>
constexpr auto det (const tmatrix< 2, 2, T > &m)
template<typename T, typename Operation>
constexpr auto det (const Expr< tmatrix< 3, 3, T >, Operation > &m)
template<typename T>
constexpr auto 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 > 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 > 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 > 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 > 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 > 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 > 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 > change_basis (const tvector< N, T > &, const rotation_matrix< T > &) noexcept
 rotate a vector using a rotation matrix.
template<unsigned short N, unsigned short M, typename T>
std::ostream & operator<< (std::ostream &, const tmatrix< N, M, T > &)
template<unsigned short N, unsigned short M, typename T>
std::ostream & operator<< (std::ostream &os, const View< tmatrix< N, M, T > > &m)
template<unsigned short N, unsigned short M, typename T>
std::ostream & operator<< (std::ostream &os, const View< const tmatrix< N, M, T > > &m)
template<unsigned short N, unsigned short M, typename T>
std::ostream & operator<< (std::ostream &os, const ScatteredView< tmatrix< N, M, T > > &m)
template<unsigned short N, unsigned short M, typename T>
std::ostream & operator<< (std::ostream &os, const ScatteredView< const tmatrix< N, M, T > > &m)
template<unsigned short N, unsigned short M, typename T>
std::ostream & operator<< (std::ostream &os, const StridedView< tmatrix< N, M, T > > &m)
template<unsigned short N, unsigned short M, typename T>
std::ostream & operator<< (std::ostream &os, const StridedView< const tmatrix< N, M, T > > &m)
template<typename NumericType>
std::ostream & operator<< (std::ostream &, const BissectionAlgorithmData< NumericType > &)
 output stream
template<typename NumericType>
std::ostream & operator<< (std::ostream &, const BissectionAlgorithmBase< NumericType > &)
 output stream
template<typename Function, typename Criterion, typename NumericType, typename IndexType>
std::tuple< bool, NumericType, IndexType > scalarNewtonRaphson (const Function &f, const Criterion &c, const NumericType x0, const IndexType im)
 find the root of the given function.
template<typename Function, typename Criterion, typename NumericType, typename IndexType>
std::tuple< bool, NumericType, IndexType > scalarNewtonRaphson (const Function &f, const Criterion &c, const ScalarNewtonRaphsonParameters< NumericType, IndexType > &p)
 find the root of the given function.
template<typename... ExternalWorkSpaceArguments>
TFEL_HOST_DEVICE TinyNonLinearSolverBase (ExternalWorkSpaceArguments &&...) noexcept
 A base class for algorithms dedicated to solve finite sized system of non linear equations.
*brief default constructor TinyNonLinearSolverBase (TinyNonLinearSolverBase &) noexcept=default
*brief default constructor TinyNonLinearSolverBase (TinyNonLinearSolverBase &&) noexcept=default
*brief default constructor TinyNonLinearSolverBase & operator= (TinyNonLinearSolverBase &&) noexcept=default
*brief default constructor TinyNonLinearSolverBase & operator= (const TinyNonLinearSolverBase &) noexcept=default
TFEL_HOST_DEVICE bool solveNonLinearSystem ()
 solve the non linear problem. This methods wraps the resolution algorithm and tries to handles failures of the latter.
TFEL_HOST_DEVICE bool solveNonLinearSystem2 ()
 solve the non linear problem. This method is called by the solveNonLinearSystem and must contain the core of the resolution algorithm.
TFEL_HOST_DEVICE constexpr void executeInitialisationTaskBeforeResolution () noexcept
 this method is called at the beginning of the solveNonLinearSystem method.
TFEL_HOST_DEVICE constexpr void executeInitialisationTaskBeforeBeginningOfCoreAlgorithm () noexcept
 this method is called at the beginning of the solveNonLinearSystem2 method.
*return the norm of the residual TFEL_HOST_DEVICE NumericType computeResidualNorm () const noexcept
TFEL_HOST_DEVICE constexpr bool checkConvergence (const NumericType e) const noexcept
 check the convergence of the method
template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType>
TFEL_HOST_DEVICE bool solveLinearSystem (FixedSizeMatrixType &, FixedSizeVectorType &) const noexcept
 solve linear system
TFEL_HOST_DEVICE constexpr void updateOrCheckJacobian () noexcept
 update the jacobian matrix if required.
TFEL_HOST_DEVICE bool callUpdateOrCheckJacobian ()
 call the updateOrCheckJacobian method of the derived class.
TFEL_HOST_DEVICE constexpr void processNewCorrection () noexcept
 method meant to set bounds on some components of the current correction or to implement a line search or to implement static decondensation.
TFEL_HOST_DEVICE constexpr void rejectCurrentCorrection () noexcept
 method called when the current correction is rejected.
TFEL_HOST_DEVICE constexpr void processNewEstimate () noexcept
 method meant to process the new estimate.
*brief method called when the resolution begins TFEL_HOST_DEVICE constexpr void reportBeginningOfResolution () const noexcept
*brief method called when the resolution succeeds TFEL_HOST_DEVICE constexpr void reportSuccess () const noexcept
*brief method called when the resolution fails TFEL_HOST_DEVICE constexpr void reportFailure () const noexcept
*brief method called when the evaluation of the residual failed TFEL_HOST_DEVICE constexpr void reportInvalidResidualEvaluation () const noexcept
*brief method called when the computation of a new correction failed TFEL_HOST_DEVICE constexpr void reportNewCorrectionComputationFailure () const noexcept
TFEL_HOST_DEVICE constexpr void reportStandardIteration (const NumericType) const noexcept
 method called after a standard Newton step
template<unsigned short N, typename NumericType>
TFEL_HOST_DEVICE void applyPowellDogLegAlgorithm (tvector< N, NumericType > &delta_zeros, const tmatrix< N, N, NumericType > &jacobian, const tvector< N, NumericType > &fzeros, const NumericType radius) noexcept
 apply Powell' dog leg algorithm
template<int N>
TFEL_HOST_DEVICE auto power (const std::floating_point auto) noexcept
 computes x to the power N
template<int N, unsigned int D, typename T>
requires (D != 0)
TFEL_HOST_DEVICE auto power (const std::floating_point auto) noexcept
 computes x to the power N/D
template<int N, unsigned int D>
requires (D != 0)
TFEL_HOST_DEVICE auto power (const std::floating_point auto x) noexcept
template<unit::UnitConcept UnitType, StandardArithmeticTypeConcept ValueType, typename OwnershipPolicy>
 Quantity (Quantity< UnitType, ValueType, OwnershipPolicy >) -> Quantity< UnitType, ValueType, OwnershipPolicy >
template<unit::UnitConcept UnitType, StandardArithmeticTypeConcept ValueType>
 qt (qt< UnitType, ValueType >) -> qt< UnitType, ValueType >
template<unit::UnitConcept UnitType, StandardArithmeticTypeConcept ValueType>
 qt_ref (qt_ref< UnitType, ValueType >) -> qt_ref< UnitType, ValueType >
template<unit::UnitConcept UnitType, StandardArithmeticTypeConcept ValueType>
 const_qt_ref (const_qt_ref< UnitType, ValueType >) -> const_qt_ref< UnitType, ValueType >
template<unit::UnitConcept UnitType, StandardArithmeticTypeConcept ValueType, typename OwnershipPolicy>
requires (Quantity<UnitType, ValueType, OwnershipPolicy>::is_mutable)
TFEL_HOST_DEVICE constexpr ValueType & base_type_cast (Quantity< UnitType, ValueType, OwnershipPolicy > &v) noexcept
template<int N, ImmutableQuantityConcept T>
requires ( std::is_floating_point_v<base_type<T>>)
TFEL_HOST_DEVICE constexpr auto power (const T &x)
template<int N, unsigned int D, ImmutableQuantityConcept T>
requires ( std::is_floating_point_v<base_type<T>>)
TFEL_HOST_DEVICE constexpr auto power (const T &x)
template<ImmutableQuantityConcept T>
TFEL_HOST_DEVICE constexpr auto square_root (const T &q) noexcept
template<ImmutableQuantityConcept QuantityType>
std::ostream & operator<< (std::ostream &os, const QuantityType &q)
template<ImmutableQuantityConcept QuantityType>
TFEL_HOST_DEVICE constexpr auto operator- (const QuantityType &q) noexcept
 negation operator
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator< (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (!std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator< (const T1 &a, const T2 &b) noexcept=delete
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator<= (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (!std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator<= (const T1 &a, const T2 &b) noexcept=delete
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator> (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (!std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator> (const T1 &a, const T2 &b) noexcept=delete
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator>= (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (!std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator>= (const T1 &a, const T2 &b) noexcept=delete
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator== (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (!std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator== (const T1 &a, const T2 &b) noexcept=delete
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator!= (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (!std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr bool operator!= (const T1 &a, const T2 &b) noexcept=delete
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr auto operator+ (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (!std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr auto operator+ (const T1 &a, const T2 &b) noexcept=delete
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr auto operator- (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
requires (!std::is_same_v<quantity_unit<T1>, quantity_unit<T2>>)
TFEL_HOST_DEVICE constexpr auto operator- (const T1 &a, const T2 &b) noexcept=delete
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
constexpr auto operator* (const T1 &a, const T2 &b) noexcept
template<ImmutableQuantityConcept T1, ImmutableQuantityConcept T2>
constexpr auto operator/ (const T1 &a, const T2 &b) noexcept
 TFEL_MATH_QT_NOUNIT_COMPARISION_OPERATORS (<)
 TFEL_MATH_QT_NOUNIT_COMPARISION_OPERATORS (<=)
 TFEL_MATH_QT_NOUNIT_COMPARISION_OPERATORS (>=)
 TFEL_MATH_QT_NOUNIT_COMPARISION_OPERATORS (!=)
 TFEL_MATH_QT_SCALAR_OPERATIONS (+)
 TFEL_MATH_QT_SCALAR_OPERATIONS (-)
template<ImmutableQuantityConcept QuantityType, StandardArithmeticTypeConcept ScalarType>
TFEL_HOST_DEVICE constexpr auto operator* (const QuantityType &lhs, const ScalarType &rhs) noexcept
template<StandardArithmeticTypeConcept ScalarType, ImmutableQuantityConcept QuantityType>
TFEL_HOST_DEVICE constexpr auto operator* (const ScalarType &lhs, const QuantityType &rhs) noexcept
template<ImmutableQuantityConcept QuantityType, StandardArithmeticTypeConcept ScalarType>
TFEL_HOST_DEVICE constexpr auto operator/ (const QuantityType &lhs, const ScalarType &rhs) noexcept
template<StandardArithmeticTypeConcept ScalarType, ImmutableQuantityConcept QuantityType>
TFEL_HOST_DEVICE constexpr auto operator/ (const ScalarType &lhs, const QuantityType &rhs) noexcept
template<typename Function, typename Criterion, typename NumericType, typename IndexType>
TFEL_HOST_DEVICE std::tuple< bool, NumericType, IndexType > scalarNewtonRaphson (const Function &, const Criterion &, const NumericType, const IndexType)
 find the root of the given function.
template<typename Function, typename Criterion, typename NumericType, typename IndexType>
TFEL_HOST_DEVICE std::tuple< bool, NumericType, IndexType > scalarNewtonRaphson (const Function &, const Criterion &, const ScalarNewtonRaphsonParameters< NumericType, IndexType > &)
 find the root of the given function.
template<typename ValueType, std::size_t M, std::size_t... d>
 st2tost2 (ValueType const (&)[M], ValueType const (&... arrays)[d]) -> st2tost2< StensorSizeToDime< sizeof...(d)+1 >::value, ValueType >
 class template argument deduction
template<typename NumType, typename T>
requires (isAssignableTo<NumType, T>())
TFEL_HOST_DEVICE constexpr void setComponent (ST2toST2Concept auto &, unsigned short, unsigned short, unsigned short, unsigned short, const T &) noexcept
 This function set the component (i,j,k,l) of a st2tost2 to a value Aijkl, which may be useful in some cases.
TFEL_HOST_DEVICE constexpr auto getComponent (const ST2toST2Concept auto &, unsigned short, unsigned short, unsigned short, unsigned short)
 This function returns the component (i,j,k,l) of a st2tost2.
template<ST2toST2Concept ST2toST2Type>
TFEL_HOST_DEVICE constexpr auto change_basis (const ST2toST2Type &, const rotation_matrix< numeric_type< ST2toST2Type > > &) noexcept
TFEL_HOST constexpr auto invert (const ST2toST2Concept auto &)
template<ST2toST2Concept ST2toST2Type, TensorConcept TensorType>
requires (getSpaceDimension<ST2toST2Type>() == getSpaceDimension<TensorType>())
TFEL_HOST_DEVICE constexpr auto push_forward (const ST2toST2Type &, const TensorType &) noexcept
template<ST2toST2Concept ST2toST2Type, TensorConcept TensorType>
requires (getSpaceDimension<ST2toST2Type>() == getSpaceDimension<TensorType>())
TFEL_HOST constexpr auto pull_back (const ST2toST2Type &, const TensorType &)
TFEL_HOST_DEVICE constexpr auto computeDeterminantSecondDerivative (const StensorConcept auto &) noexcept
 compute the second derivative of determinant of a
TFEL_HOST_DEVICE constexpr auto computeDeviatorDeterminantSecondDerivative (const StensorConcept auto &) noexcept
 compute the second derivative of the determinant of the deviator of symmetric tensor.
template<ST2toST2Concept ST2toST2Type, StensorConcept StensorType>
requires ((getSpaceDimension<ST2toST2Type>() == getSpaceDimension<StensorType>()) && (std::is_same_v<numeric_type<ST2toST2Type>, numeric_type<StensorType>>))
TFEL_HOST_DEVICE constexpr auto convertSpatialModuliToKirchhoffJaumanRateModuli (const ST2toST2Type &C_s, const StensorType &tau) noexcept
 convert the spatial moduli in the moduli associated with Jauman rate of the Kirchhoff stress
template<T2toST2Concept T2toST2Type, TensorConcept TensorType>
requires (getSpaceDimension<T2toST2Type>() == getSpaceDimension<TensorType>())
TFEL_HOST_DEVICE constexpr auto convertToTangentModuli (const T2toST2Type &K, const TensorType &F) noexcept
 compute the moduli \(C\) such that \(C\,\colon\,D = K\,\colon\,\left(D\,\cdot\,F\right)\) for every symmetric tensor \(D\).
TFEL_HOST_DEVICE constexpr auto abs (const ST2toST2Concept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto transpose (ST2toST2Concept auto &&) noexcept
 This function computes the transpose of a st2tost2 as.
TFEL_HOST_DEVICE constexpr auto trace (const ST2toST2Concept auto &) noexcept
 This function computes the trace of a st2tost2 as.
TFEL_HOST_DEVICE constexpr auto quaddot (const ST2toST2Concept auto &, const ST2toST2Concept auto &) noexcept
 This function computes the quadruple contraction of two st2tost2 as.
TFEL_HOST_DEVICE constexpr auto norm (const ST2toST2Concept auto &) noexcept
 This function computes the norm of a st2tost2 as.
TFEL_HOST_DEVICE constexpr auto det (const ST2toST2Concept auto &) noexcept
template<ST2toST2Concept ST2toST2ResultType, TensorConcept TensorType>
requires (tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond)
TFEL_HOST_DEVICE constexpr void computePushForwardDerivative (ST2toST2ResultType &, const TensorType &) noexcept
 compute de derivative of the push-forward of a symmetric second order tensor with respect to the deformation gradient, i.e. it computes the derivative of F . S . transpose(F) with respect to S assuming that F is constant
template<ST2toST2Concept ST2toST2Type, ST2toST2Concept ST2toST2Type2, TensorConcept TensorType>
requires (getSpaceDimension<ST2toST2Type>() == getSpaceDimension<ST2toST2Type2>() && getSpaceDimension<ST2toST2Type>() == getSpaceDimension<TensorType>())
TFEL_HOST_DEVICE constexpr void push_forward (ST2toST2Type &, const ST2toST2Type2 &, const TensorType &) noexcept
 performs the push_forward of a st2tost2: [ Ct_{ijkl}=F_{im}F_{jn}F_{kp}F_{lq}C_{mnpq} ]
template<typename ST2toST2Type>
TFEL_HOST_DEVICE constexpr bool implementsST2toST2Concept ()
 an helper function which returns if the given type implements the ST2toST2Concept.
TFEL_HOST std::ostream & operator<< (std::ostream &os, const ST2toST2Concept auto &s)
template<StensorConcept T1, ST2toST2Concept T2>
TFEL_HOST_DEVICE constexpr auto operator| (const T1 &a, const T2 &b) noexcept
template<StensorConcept StensorType1, StensorConcept StensorType2>
TFEL_HOST_DEVICE constexpr auto symmetric_product_derivative_daba_da (const StensorType1 &a, const StensorType2 &b) noexcept -> st2tost2< 1u, decltype(a[0] *b[0])> requires((getSpaceDimension< StensorType1 >()==1u) &&(getSpaceDimension< StensorType2 >()==1u))
template<StensorConcept StensorType1, StensorConcept StensorType2>
TFEL_HOST_DEVICE constexpr auto symmetric_product_derivative_daba_da (const StensorType1 &a, const StensorType2 &b) noexcept -> st2tost2< 2u, decltype(a[0] *b[0])> requires((getSpaceDimension< StensorType1 >()==2u) &&(getSpaceDimension< StensorType2 >()==2u))
template<StensorConcept StensorType1, StensorConcept StensorType2>
TFEL_HOST_DEVICE constexpr auto symmetric_product_derivative_daba_da (const StensorType1 &a, const StensorType2 &b) noexcept -> st2tost2< 3u, decltype(a[0] *b[0])> requires((getSpaceDimension< StensorType1 >()==3u) &&(getSpaceDimension< StensorType2 >()==3u))
template<StensorConcept StensorType>
TFEL_HOST_DEVICE constexpr auto symmetric_product_derivative_daba_db (const StensorType &a) noexcept -> st2tost2< 1u, decltype(a[0] *a[0])> requires(getSpaceDimension< StensorType >()==1u)
template<StensorConcept StensorType>
TFEL_HOST_DEVICE constexpr auto symmetric_product_derivative_daba_db (const StensorType &a) noexcept -> st2tost2< 2u, decltype(a[0] *a[0])> requires(getSpaceDimension< StensorType >()==2u)
template<StensorConcept StensorType>
TFEL_HOST_DEVICE constexpr auto symmetric_product_derivative_daba_db (const StensorType &a) noexcept -> st2tost2< 3u, decltype(a[0] *a[0])> requires(getSpaceDimension< StensorType >()==3u)
template<typename ValueType, std::size_t M, std::size_t... d>
 st2tot2 (ValueType const (&)[M], ValueType const (&... arrays)[d]) -> st2tot2< TensorSizeToDime< sizeof...(d)+1 >::value, ValueType >
 class template argument deduction
constexpr auto abs (const ST2toT2Concept auto &) noexcept
template<typename ST2toT2Type>
TFEL_HOST_DEVICE constexpr bool implementsST2toT2Concept ()
 an helper function which returns if the given type implements the ST2toT2Concept.
TFEL_HOST std::ostream & operator<< (std::ostream &os, const ST2toT2Concept auto &t)
template<TensorConcept T1, ST2toT2Concept T2>
requires (!isInvalid<BinaryOperationResult<T1, T2, OpMult>>())
TFEL_HOST_DEVICE constexpr auto operator| (const T1 &a, const T2 &b) noexcept
template<typename... T>
 stensor (T &&... t) -> stensor< StensorSizeToDime< sizeof...(T)>::value, std::common_type_t< T... > >
template<typename NumType, typename T>
requires (isAssignableTo<NumType, T>())
TFEL_HOST_DEVICE constexpr void setComponent (StensorConcept auto &, unsigned short, unsigned short, const T &) noexcept
 This function set the component (i,j) of a stensor to a value Aij, using the function VoigtIndex.
TFEL_HOST_DEVICE constexpr auto getComponent (const StensorConcept auto &, unsigned short, unsigned short)
 This function returns the component (i,j) of a stensor, using the function VoigtIndex.
template<unsigned short N, typename T, typename OutputIterator>
requires (isScalar<T>())
TFEL_HOST_DEVICE constexpr void exportToBaseTypeArray (const stensor< N, T > &, OutputIterator) noexcept
 export the given vector to an array
template<unsigned short N, typename T>
TFEL_HOST_DEVICE T tresca (const stensor< N, T > &, const bool=false)
template<typename T>
TFEL_HOST_DEVICE constexpr T tresca (const stensor< 1u, T > &, const bool=false)
TFEL_HOST_DEVICE auto square_root (const StensorConcept auto &)
TFEL_HOST_DEVICE constexpr auto det (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeDeterminantDerivative (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeDeviatorDeterminantDerivative (const StensorConcept auto &) noexcept
template<StensorConcept StensorType>
TFEL_HOST_DEVICE constexpr auto change_basis (const StensorType &, const rotation_matrix< numeric_type< StensorType > > &) noexcept
 rotate a symmetric tensor using a rotation matrix
TFEL_HOST_DEVICE constexpr auto invert (const StensorConcept auto &) noexcept
template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto logarithm (const StensorType &, const bool=false)
 compute the logarithm of a symmetric tensor
template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto absolute_value (const StensorType &, const bool=false)
 compute the absolute value of a symmetric tensor
template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto positive_part (const StensorType &, const bool=false)
 compute the positive part of a symmetric tensor
template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto negative_part (const StensorType &, const bool=false)
 compute the negative part of a symmetric tensor
TFEL_HOST_DEVICE auto square (const StensorConcept auto &)
template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, StensorConcept StensorType>
TFEL_HOST_DEVICE auto computeIsotropicFunction (const Function &, const StensorType &, const bool=false)
template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, typename FunctionDerivative, StensorConcept StensorType>
TFEL_HOST_DEVICE auto computeIsotropicFunctionDerivative (const Function &, const FunctionDerivative &, const StensorType &, const numeric_type< StensorType >, const bool=false)
template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, typename FunctionDerivative, StensorConcept StensorType>
TFEL_HOST_DEVICE auto computeIsotropicFunctionAndDerivative (const Function &, const FunctionDerivative &, const StensorType &, const numeric_type< StensorType >, const bool=false)
template<StensorConcept T, StensorConcept T2>
requires ( (getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType<numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto convertCorotationnalCauchyStressToSecondPiolaKirchhoffStress (const T &, const T2 &) noexcept
 convert the corotationnal cauchy stress to the second Piola-Kirchhoff stress
template<StensorConcept T, StensorConcept T2>
requires ( (getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType<numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto convertSecondPiolaKirchhoffStressToCorotationnalCauchyStress (const T &, const T2 &) noexcept
 convert the second Piola-Kirchhoff stress to the corotationnal cauchy stress:
template<StensorConcept StensorType1, StensorConcept StensorType2>
requires (getSpaceDimension<StensorType1>() == getSpaceDimension<StensorType2>())
TFEL_HOST_DEVICE constexpr auto symmetric_product (const StensorType1 &, const StensorType2 &) noexcept
 return the symmetric product of two stensors as a symmetric tensor:
template<ScalarConcept ValueType>
constexpr tvector< 3u, ValueType > sortEigenValues (const tvector< 3u, ValueType > &, stensor_common::EigenValuesOrdering=stensor_common::DESCENDING) noexcept
 sort the eigenvalues
template<ST2toST2Concept DPPType, StensorConcept PPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 1u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>())
void computeStensorPositivePartAndDerivative (DPPType &, PPType &, const StensorType &, const numeric_type< StensorType >)
 compute the decomposition of a symmetric tensor in its positive part and the derivative of this positive part.
template<ST2toST2Concept DPPType, StensorConcept PPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 2u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>())
void computeStensorPositivePartAndDerivative (DPPType &, PPType &, const StensorType &, const numeric_type< StensorType >)
 compute the decomposition of a symmetric tensor in its positive part and the derivative of this positive part.
template<ST2toST2Concept DPPType, StensorConcept PPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 3u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>())
void computeStensorPositivePartAndDerivative (DPPType &, PPType &, const StensorType &, const numeric_type< StensorType >)
 compute the decomposition of a symmetric tensor in its positive part and the derivative of this positive part.
template<ST2toST2Concept DPPType, ST2toST2Concept DNPType, StensorConcept PPType, StensorConcept NPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<DNPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<NPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 1u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<numeric_type<StensorType>, numeric_type<NPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DNPType>>())
void computeStensorDecompositionInPositiveAndNegativeParts (DPPType &, DNPType &, PPType &, NPType &, const StensorType &, const numeric_type< StensorType >)
 compute the decomposition of a symmetric tensor in a positive and negative parts and their derivatives.
template<ST2toST2Concept DPPType, ST2toST2Concept DNPType, StensorConcept PPType, StensorConcept NPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<DNPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<NPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 2u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<numeric_type<StensorType>, numeric_type<NPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DNPType>>())
void computeStensorDecompositionInPositiveAndNegativeParts (DPPType &, DNPType &, PPType &, NPType &, const StensorType &, const numeric_type< StensorType >)
 compute the decomposition of a symmetric tensor in a positive and negative parts and their derivatives.
template<ST2toST2Concept DPPType, ST2toST2Concept DNPType, StensorConcept PPType, StensorConcept NPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<DNPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<NPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 3u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<numeric_type<StensorType>, numeric_type<NPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DNPType>>())
void computeStensorDecompositionInPositiveAndNegativeParts (DPPType &, DNPType &, PPType &, NPType &, const StensorType &, const numeric_type< StensorType >)
 compute the decomposition of a symmetric tensor in a positive and negative parts and their derivatives.
TFEL_HOST_DEVICE constexpr auto getComponent (const StensorConcept auto &A, unsigned short int i, unsigned short int j)
template<StensorConcept StensorType>
TFEL_HOST_DEVICE constexpr auto change_basis (const StensorType &s, const tmatrix< 3u, 3u, base_type< numeric_type< StensorType > > > &r) noexcept
template<StensorConcept T, StensorConcept T2>
requires ((getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType< numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto convertCorotationnalCauchyStressToSecondPiolaKirchhoffStress (const T &s, const T2 &U) noexcept
 convert the corotationnal cauchy stress to the second Piola-Kirchhoff stress
template<StensorConcept T, StensorConcept T2>
requires ((getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType< numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto convertSecondPiolaKirchhoffStressToCorotationnalCauchyStress (const T &S, const T2 &U) noexcept
 convert the second Piola-Kirchhoff stress to the corotationnal cauchy stress:
TFEL_HOST_DEVICE constexpr auto abs (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto trace (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto sigmaeq (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto deviator (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeDeterminantDerivative (StensorConcept auto &, const StensorConcept auto &) noexcept
 compute the derivative of the determinant with respect to its argument.
TFEL_HOST_DEVICE constexpr auto computeDeviatorDeterminantDerivative (StensorConcept auto &, const StensorConcept auto &) noexcept
 compute the derivative of the determinant with respect to its argument.
TFELMATH_VISIBILITY_EXPORT unsigned short getStensorSize (const unsigned short)
 return the size of a symmetric tensor for the given dimension
template<unsigned short N>
TFEL_HOST_DEVICE constexpr unsigned short VoigtIndex (const unsigned short, const unsigned short)
 This function returns the Voigt index of two indices (beginning from 0). Hence, the correspondence is, in 3d:
template<typename StensorType>
TFEL_HOST_DEVICE constexpr bool implementsStensorConcept ()
 an helper function which returns if the given type implements the StensorConcept.
TFEL_HOST std::ostream & operator<< (std::ostream &os, const StensorConcept auto &s)
 serialisation operator
template<StensorConcept T1, StensorConcept T2>
requires ((getSpaceDimension<T1>() == getSpaceDimension<T2>()) && (!isInvalid<BinaryOperationResult<T1, T2, OpDotProduct>>()))
TFEL_HOST_DEVICE constexpr BinaryOperationResult< T1, T2, OpDotProduct > operator| (const T1 &, const T2 &) noexcept
template<StensorConcept StensorType1, StensorConcept StensorType2>
requires ( (getSpaceDimension<StensorType1>() == getSpaceDimension<StensorType2>()) && (!isInvalid< BinaryOperationResult<StensorType1, StensorType2, OpDotProduct>>()))
TFEL_HOST_DEVICE constexpr BinaryOperationResult< StensorType1, StensorType2, OpDotProduct > operator| (const StensorType1 &a, const StensorType2 &b) noexcept
template<StensorConcept StensorType1, StensorConcept StensorType2>
requires (getSpaceDimension<StensorType1>() == getSpaceDimension<StensorType2>())
TFEL_HOST_DEVICE constexpr auto symmetric_product_aba (const StensorType1 &a, const StensorType2 &b)
template<typename ValueType, std::size_t M, std::size_t... d>
 t2tost2 (ValueType const (&)[M], ValueType const (&... arrays)[d]) -> t2tost2< StensorSizeToDime< sizeof...(d)+1 >::value, ValueType >
 class template argument deduction
template<T2toST2Concept T2toST2Type>
TFEL_HOST_DEVICE constexpr auto change_basis (const T2toST2Type &, const rotation_matrix< numeric_type< T2toST2Type > > &) noexcept
TFEL_HOST_DEVICE constexpr auto convertToT2toST2 (const T2toT2Concept auto &) noexcept
 convert a t2tot2 tensor to a t2tost2
TFEL_HOST_DEVICE constexpr auto computeRateOfDeformationDerivative (const TensorConcept auto &) noexcept
template<T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires (getSpaceDimension<T2toST2Type>() == getSpaceDimension<StensorType>() && getSpaceDimension<T2toST2Type>() == getSpaceDimension<TensorType>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond)
TFEL_HOST_DEVICE constexpr auto computeCauchyStressDerivativeFromKirchhoffStressDerivative (const T2toST2Type &, const StensorType &, const TensorType &) noexcept
 compute the Cauchy stress derivative from the Kirchhoff stress derivative
template<T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires (getSpaceDimension<T2toST2Type>() == getSpaceDimension<StensorType>() && getSpaceDimension<T2toST2Type>() == getSpaceDimension<TensorType>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond)
TFEL_HOST_DEVICE constexpr auto computeKirchhoffStressDerivativeFromCauchyStressDerivative (const T2toST2Type &, const StensorType &, const TensorType &) noexcept
 compute the Cauchy stress derivative from the Kirchhoff stress derivative
template<T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires (getSpaceDimension<StensorType>() == getSpaceDimension<T2toST2Type>() && getSpaceDimension<TensorType>() == getSpaceDimension<T2toST2Type>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond)
TFEL_HOST_DEVICE constexpr auto computePushForwardDerivative (const T2toST2Type &, const StensorType &, const TensorType &) noexcept
template<T2toST2Concept T2toST2ResultType, T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires (tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond&& isAssignableTo< typename ComputeBinaryResult<numeric_type<T2toST2Type>, numeric_type<StensorType>, OpPlus>::Result, numeric_type<T2toST2ResultType>>())
TFEL_HOST_DEVICE constexpr void computePushForwardDerivative (T2toST2ResultType &, const T2toST2Type &, const StensorType &, const TensorType &) noexcept
 compute de derivative of the push-forward of a symmetric second order tensor with respect to the deformation gradient knowing the value of this derivative in the initial configuration.
TFEL_HOST_DEVICE constexpr auto abs (const T2toST2Concept auto &) noexcept
template<T2toST2Concept T2toST2ResultType, StensorConcept StensorType, TensorConcept TensorType>
requires (tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond&& isAssignableTo<numeric_type<StensorType>, numeric_type<T2toST2ResultType>>())
TFEL_HOST_DEVICE constexpr void computePushForwardDerivativeWithRespectToDeformationGradient (T2toST2ResultType &, const StensorType &, const TensorType &) noexcept
 compute de derivative of the push-forward of a symmetric second order tensor with respect to the deformation gradient, i.e. it computes the derivative of F . S . transpose(F) with respect to F assuming that S is constant
template<T2toST2Concept T2toST2ResultType, T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires ( getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<T2toST2Type>() && getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<StensorType>() && getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<TensorType>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond && isAssignableTo<typename ComputeBinaryResult<numeric_type<T2toST2Type>, numeric_type<StensorType>, OpPlus>::Result, numeric_type<T2toST2ResultType>>())
TFEL_HOST_DEVICE constexpr void computeCauchyStressDerivativeFromKirchhoffStressDerivative (T2toST2ResultType &, const T2toST2Type &, const StensorType &, const TensorType &) noexcept
 compute the Cauchy stress derivative from the Kirchhoff stress derivative with respect to the deformation gradient
template<T2toST2Concept T2toST2ResultType, T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires ( getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<T2toST2Type>() && getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<StensorType>() && getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<TensorType>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond && isAssignableTo<typename ComputeBinaryResult<numeric_type<T2toST2Type>, numeric_type<StensorType>, OpPlus>::Result, numeric_type<T2toST2ResultType>>())
TFEL_HOST_DEVICE constexpr void computeKirchhoffStressDerivativeFromCauchyStressDerivative (T2toST2ResultType &, const T2toST2Type &, const StensorType &, const TensorType &) noexcept
 compute the Kirchhoff stress derivative from the Cauchy stress derivative with respect to the deformation gradient
template<T2toST2Concept T2toST2Type>
TFEL_HOST_DEVICE constexpr bool implementsT2toST2Concept ()
 an helper function which returns if the given type implements the T2toST2Concept.
TFEL_HOST std::ostream & operator<< (std::ostream &os, const T2toST2Concept auto &t)
 serialisation operator
TFEL_HOST_DEVICE constexpr auto operator| (const StensorConcept auto &a, const T2toST2Concept auto &b) noexcept
template<typename ValueType, std::size_t M, std::size_t... d>
 t2tot2 (ValueType const (&)[M], ValueType const (&... arrays)[d]) -> t2tot2< TensorSizeToDime< sizeof...(d)+1 >::value, ValueType >
 class template argument deduction
template<T2toT2Concept T2toT2Type>
TFEL_HOST_DEVICE constexpr auto change_basis (const T2toT2Type &, const rotation_matrix< numeric_type< T2toT2Type > > &) noexcept
TFEL_HOST_DEVICE constexpr auto computeVelocityGradientDerivative (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeSpinRateDerivative (const TensorConcept auto &) noexcept
template<TensorConcept TensorType>
requires (isScalar<numeric_type<TensorType>>())
TFEL_HOST_DEVICE constexpr auto computeDeterminantSecondDerivative (const TensorType &) noexcept
 compute the second derivative of the determinant of a tensor
template<TensorConcept TensorType>
requires (isScalar<numeric_type<TensorType>>())
TFEL_HOST_DEVICE constexpr auto computeAdjugateDeterminantSecondDerivative (const TensorType &) noexcept
 compute the derivative of the adjugate of a tensor, \(\det\left(F\right)\,F^{-1}\), i.e. of the result of computeAdjugateDeterminantDerivative
template<typename T, T2toST2Concept T2toST2Type>
requires (isAssignableTo<numeric_type<T2toST2Type>, T>())
TFEL_HOST_DEVICE constexpr void convert (t2tot2< getSpaceDimension< T2toST2Type >(), T > &, const T2toST2Type &) noexcept
template<unsigned short N, typename stress, typename real>
TFEL_HOST_DEVICE constexpr void convertFirstPiolaKirchhoffStressDerivativeToKirchhoffStressDerivative (t2tost2< N, stress > &dtau, const t2tot2< N, stress > &dP, const tensor< N, real > &F, const stensor< N, stress > &s) noexcept
template<unsigned short N, typename stress, typename real>
TFEL_HOST_DEVICE constexpr t2tost2< N, stress > convertFirstPiolaKirchhoffStressDerivativeToKirchhoffStressDerivative (const t2tot2< N, stress > &dP, const tensor< N, real > &F, const stensor< N, stress > &s) noexcept
template<StressT2toST2Concept CauchyStressDerivativeType, NoUnitTensorConcept DeformationGradientType, StressStensorConcept CauchyStressType>
requires (checkThatAllSpaceDimensionsAreEqual<CauchyStressDerivativeType, DeformationGradientType, CauchyStressType>())
TFEL_HOST_DEVICE constexpr t2tot2< space_dimension< CauchyStressDerivativeType >, numeric_type< CauchyStressDerivativeType > > convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative (const CauchyStressDerivativeType &, const DeformationGradientType &, const CauchyStressType &) noexcept
 convert the derivative of the Cauchy stress with respect to the deformation gradient to the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.
template<StressT2toT2Concept PK1StressDerivativeType, StressT2toST2Concept CauchyStressDerivativeType, NoUnitTensorConcept DeformationGradientType, StressStensorConcept CauchyStressType>
requires (checkThatAllSpaceDimensionsAreEqual<PK1StressDerivativeType, CauchyStressDerivativeType, DeformationGradientType, CauchyStressType>())
TFEL_HOST_DEVICE constexpr void convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative (PK1StressDerivativeType &dP, const CauchyStressDerivativeType &ds, const DeformationGradientType &F, const CauchyStressType &s) noexcept
 convert the derivative of the Cauchy stress with respect to the deformation gradient to the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.
template<StressST2toST2Concept PK2StressDerivativeType, NoUnitTensorConcept DeformationGradientType, StressStensorConcept CauchyStressType>
requires (checkThatAllSpaceDimensionsAreEqual<PK2StressDerivativeType, DeformationGradientType, CauchyStressType>())
TFEL_HOST_DEVICE constexpr t2tot2< space_dimension< PK2StressDerivativeType >, numeric_type< PK2StressDerivativeType > > convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative (const PK2StressDerivativeType &, const DeformationGradientType &, const CauchyStressType &) noexcept
 convert the derivative of the second Piola-Kirchhoff stress with respect to the Green-Lagrange strain to the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.
template<StressT2toT2Concept PK1StressDerivativeType, StressST2toST2Concept PK2StressDerivativeType, NoUnitTensorConcept DeformationGradientType, StressStensorConcept CauchyStressType>
requires (checkThatAllSpaceDimensionsAreEqual<PK1StressDerivativeType, PK2StressDerivativeType, DeformationGradientType, CauchyStressType>())
TFEL_HOST_DEVICE constexpr void convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative (PK1StressDerivativeType &, const PK2StressDerivativeType &, const DeformationGradientType &, const CauchyStressType &) noexcept
 convert the derivative of the second Piola-Kirchhoff stress with respect to the Green-Lagrange strain to the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.
template<typename... ArgumentsTypes>
TFEL_HOST_DEVICE constexpr auto convertCauchyStressDerivativeToFirstPiolaKirchoffStressDerivative (ArgumentsTypes &&... args) noexcept -> decltype(convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative(std::forward< ArgumentsTypes >(args)...))
 former, misspelled, name of convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative
template<typename... ArgumentsTypes>
TFEL_HOST_DEVICE constexpr auto convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchoffStressDerivative (ArgumentsTypes &&... args) noexcept -> decltype(convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative(std::forward< ArgumentsTypes >(args)...))
 former, misspelled, name of convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative
TFEL_HOST_DEVICE constexpr auto abs (const T2toT2Concept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto det (const T2toT2Concept auto &) noexcept
template<T2toT2Concept T2toT2Type>
TFEL_HOST_DEVICE constexpr bool implementsT2toT2Concept ()
 an helper function which returns if the given type implements the T2toT2Concept.
TFEL_HOST std::ostream & operator<< (std::ostream &os, const T2toT2Concept auto &t)
 serialisation operator
template<TensorConcept T1, T2toT2Concept T2>
requires (!isInvalid<BinaryOperationResult<T1, T2, OpMult>>())
constexpr auto operator| (const T1 &a, const T2 &b) noexcept
template<typename... T>
 tensor (T &&... t) -> tensor< TensorSizeToDime< sizeof...(T)>::value, std::common_type_t< T... > >
template<unsigned short N, typename T>
requires (isScalar<T>())
TFEL_HOST_DEVICE constexpr void exportToBaseTypeArray (const tensor< N, T > &, const auto) noexcept
TFEL_HOST_DEVICE constexpr auto invert (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeDeterminantDerivative (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeAdjugateDeterminantDerivative (const TensorConcept auto &) noexcept
template<TensorConcept TensorType>
TFEL_HOST_DEVICE constexpr auto change_basis (const TensorType &, const rotation_matrix< numeric_type< TensorType > > &) noexcept
 rotate a tensor using a rotation matrix
TFEL_HOST_DEVICE constexpr auto unsyme (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto convertCauchyStressToFirstPiolaKirchhoffStress (const StensorConcept auto &, const TensorConcept auto &) noexcept
 convert the Cauchy stress to the first Piola-Kirchhoff stress.
TFEL_HOST_DEVICE constexpr auto convertFirstPiolaKirchhoffStressToCauchyStress (const TensorConcept auto &, const TensorConcept auto &) noexcept
 convert the first Piola-Kirchhoff stress to the Cauchy stress
template<tfel::math::NoUnitTensorConcept DeformationGradientType>
TFEL_HOST_DEVICE constexpr auto computePiolaTransformOfIdentityMatrixInReferenceConfiguration (const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto computePiolaTransform (const tvector< N, ValueType > &, const DeformationGradientType &) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto computeInversePiolaTransform (const tvector< N, ValueType > &, const DeformationGradientType &) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto computeNansonTransform (const tvector< N, ValueType > &, const DeformationGradientType &) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto computeInverseNansonTransform (const tvector< N, ValueType > &, const DeformationGradientType &) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto computePiolaTransformAndDerivatives (const tvector< N, ValueType > &, const DeformationGradientType &) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto computeInversePiolaTransformAndDerivatives (const tvector< N, ValueType > &, const DeformationGradientType &) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto computeNansonTransformAndDerivatives (const tvector< N, ValueType > &, const DeformationGradientType &) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto computeInverseNansonTransformAndDerivatives (const tvector< N, ValueType > &, const DeformationGradientType &) noexcept
template<tfel::math::NoUnitTensorConcept DeformationGradientType>
constexpr auto computePiolaTransformOfIdentityMatrixInReferenceConfiguration (const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
constexpr auto computePiolaTransform (const tvector< N, ValueType > &q, const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
constexpr auto computeInversePiolaTransform (const tvector< N, ValueType > &Q, const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
constexpr auto computeNansonTransform (const tvector< N, ValueType > &n, const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
constexpr auto computeInverseNansonTransform (const tvector< N, ValueType > &n, const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
constexpr auto computePiolaTransformAndDerivatives (const tvector< N, ValueType > &q, const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
constexpr auto computeInversePiolaTransformAndDerivatives (const tvector< N, ValueType > &Q, const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
constexpr auto computeNansonTransformAndDerivatives (const tvector< N, ValueType > &Nv, const DeformationGradientType &F) noexcept
template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
constexpr auto computeInverseNansonTransformAndDerivatives (const tvector< N, ValueType > &n, const DeformationGradientType &F) noexcept
TFEL_HOST_DEVICE constexpr auto abs (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto trace (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto syme (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeRightCauchyGreenTensor (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeLeftCauchyGreenTensor (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeGreenLagrangeTensor (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto pushForward (const StensorConcept auto &, const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto push_forward (const StensorConcept auto &, const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto convertCauchyStressToSecondPiolaKirchhoffStress (const StensorConcept auto &, const TensorConcept auto &) noexcept
 convert the Cauchy stress to the second Piola-Kirchhoff stress
TFEL_HOST_DEVICE constexpr auto convertSecondPiolaKirchhoffStressToCauchyStress (const StensorConcept auto &, const TensorConcept auto &) noexcept
 convert the second Piola-Kirchhoff stress to the Cauchy stress
TFEL_HOST_DEVICE constexpr auto det (const TensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto computeDeterminantDerivative (TensorConcept auto &, const TensorConcept auto &) noexcept
 compute the derivative of the determinant with respect to its argument.
TFEL_HOST_DEVICE constexpr auto computeAdjugateDeterminantDerivative (TensorConcept auto &, const TensorConcept auto &) noexcept
 compute the adjugate of a tensor, \(\det\left(F\right)\,F^{-1}\), i.e. the transpose of the derivative of the determinant with respect to its argument.
TFEL_HOST void polar_decomposition (TensorConcept auto &, StensorConcept auto &, const TensorConcept auto &)
 provide the polar decomposition of a tensor
template<TensorConcept TensorType>
TFEL_HOST_DEVICE constexpr auto matrix_view (TensorType &&t) noexcept
template<TensorConcept TensorType>
TFEL_HOST_DEVICE constexpr auto transpose (TensorType &&) noexcept
template<typename TensorType>
TFEL_HOST_DEVICE constexpr bool implementsTensorConcept ()
 an helper function which returns if the given type implements the TensorConcept.
template<TensorConcept TensorType>
TFEL_HOST std::ostream & operator<< (std::ostream &os, const TensorType &s)
template<TensorConcept TensorType1, TensorConcept TensorType2>
requires ( !isInvalid< BinaryOperationResult<TensorType1, TensorType2, OpDotProduct>>())
TFEL_HOST_DEVICE constexpr auto operator| (const TensorType1 &, const TensorType2 &) noexcept
template<typename ValueType, std::size_t M, std::size_t... d>
 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 > transpose (const tmatrix< N, M, T > &)
template<typename T, typename Operation>
TFEL_HOST_DEVICE constexpr auto det (const Expr< tmatrix< 2, 2, T >, Operation > &)
template<typename T>
TFEL_HOST_DEVICE constexpr auto det (const tmatrix< 2, 2, T > &)
template<typename T, typename Operation>
TFEL_HOST_DEVICE constexpr auto det (const Expr< tmatrix< 3, 3, T >, Operation > &)
template<typename T>
TFEL_HOST_DEVICE constexpr auto 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 > 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 > 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<typename F, typename T, unsigned short N>
TFEL_HOST_DEVICE constexpr tvector< N, std::invoke_result_t< F, T > > map (F, const tvector< N, T > &)
 create a new tvector by applying a functor
template<unsigned short N, typename T, typename OutputIterator>
requires (isScalar<T>())
TFEL_HOST_DEVICE constexpr void exportToBaseTypeArray (const tvector< N, T > &, OutputIterator) noexcept
template<unsigned short N, typename T>
requires (isScalar<T>())
TFEL_HOST_DEVICE constexpr auto norm (const tvector< N, T > &) noexcept
template<unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto abs (const tvector< N, T > &v) noexcept
template<unsigned short N, typename T, typename Operation>
TFEL_HOST_DEVICE constexpr auto abs (const Expr< tvector< N, T >, Operation > &) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 1u, T > makeTVector1D (const T) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 2u, T > makeTVector2D (const T, const T) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 3u, T > makeTVector3D (const T, const T, const T) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 3u, T > cross_product (const tvector< 2u, T > &, const tvector< 2u, T > &) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 3u, T > cross_product (const tvector< 3u, T > &, const tvector< 3u, T > &) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr void find_perpendicular_vector (tvector< 3u, T > &, const tvector< 3u, T > &) noexcept
template<unsigned short I, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto slice (tvector< N, T > &) noexcept
 create a slice from a tiny vector
template<unsigned short I, unsigned short J, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto slice (tvector< N, T > &) noexcept
 create a slice from a tiny vector
template<unsigned short I, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto slice (const tvector< N, T > &) noexcept
 create a slice from a tiny vector
template<unsigned short I, unsigned short J, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto slice (const tvector< N, T > &) noexcept
 create a slice from a tiny vector (const version)
template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N>
requires ((!isScalar<MappedType>()) && (IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto map (tvector< N, base_type< numeric_type< MappedType > > > &) noexcept
 create a view of a math object from a tiny vector
template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N>
requires ((!isScalar<MappedType>()) && (IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto map (const tvector< N, base_type< numeric_type< MappedType > > > &) noexcept
 create a constant view of a math object from a tiny vector
template<typename MappedType, unsigned short offset, typename IndexingPolicyType = typename MappedType::indexing_policy, unsigned short N, typename real>
requires ( (!std::is_const_v<MappedType>)&&(IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename MappedType::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto map (tvector< N, real > &) noexcept
 create a view of a math object from a tiny vector
template<typename MappedType, unsigned short offset, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N, typename real>
requires ((IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto map (const tvector< N, real > &) noexcept
 create a constant view of a math object from a tiny vector
template<unsigned short M, typename MappedType, unsigned short offset = 0u, unsigned short stride = getViewsArrayMinimalStride<MappedType>(), unsigned short N>
requires (!std::is_const_v<MappedType>)
TFEL_HOST_DEVICE constexpr auto map (tvector< N, ViewsArrayStorageType< MappedType > > &) noexcept
 create a view on an array of fixed sized math objects from a tiny vector
template<unsigned short M, typename MappedType, unsigned short offset = 0u, unsigned short stride = getViewsArrayMinimalStride<MappedType>(), unsigned short N>
TFEL_HOST_DEVICE constexpr auto map (const tvector< N, ViewsArrayStorageType< MappedType > > &)
 create a const view on an array of fixed sized math objects from a tiny vector
template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr std::tuple_element_t< i, tvector< N, ValueType > > & get (tvector< N, ValueType > &v) noexcept
 partial specialisation of std::get for tfel::math::tvector
template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr const std::tuple_element_t< i, tvector< N, ValueType > > & get (const tvector< N, ValueType > &v) noexcept
 partial specialisation of std::get for tfel::math::tvector
template<typename... T>
 tvector (T &&... t) -> tvector< sizeof...(T), std::common_type_t< T... > >
template<unit::UnitConcept Unit, typename T>
requires (ScalarConcept<T> || MathObjectConcept<T>)
constexpr bool checkUnitCompatibility ()
 this function checks if the given type matches the given unit if it built on top of a quantity. If the given type is built on a plain old scalar type, this function always returns true.
template<ScalarConcept T>
TFEL_HOST_DEVICE auto norm (const vector< T > &) noexcept
template<unsigned short N, typename T>
std::ostream & operator<< (std::ostream &, const tvector< N, T > &)
template<unsigned short N, typename T>
std::ostream & operator<< (std::ostream &os, const View< tvector< N, T > > &s)
template<unsigned short N, typename T>
std::ostream & operator<< (std::ostream &os, const View< const tvector< N, T > > &s)
template<unsigned short N, typename T>
std::ostream & operator<< (std::ostream &os, const ScatteredView< tvector< N, T > > &s)
template<unsigned short N, typename T>
std::ostream & operator<< (std::ostream &os, const ScatteredView< const tvector< N, T > > &s)
template<unsigned short N, typename T>
std::ostream & operator<< (std::ostream &os, const StridedView< tvector< N, T > > &s)
template<unsigned short N, typename T>
std::ostream & operator<< (std::ostream &os, const StridedView< const tvector< N, T > > &s)
template<ScalarConcept ValueType>
TFEL_HOST_DEVICE auto norm (const vector< ValueType > &vec) noexcept
template<typename VectorType>
TFEL_HOST_DEVICE constexpr bool implementsVectorConcept ()
 an helper function which returns if the given type implements the VectorConcept.
template<VectorConcept T1, VectorConcept T2>
requires ( !isInvalid<BinaryOperationResult<T1, T2, OpDotProduct>>())
TFEL_HOST_DEVICE constexpr auto operator| (const T1 &, const T2 &)
template<VectorConcept T1>
requires ( !isInvalid<BinaryOperationResult<T1, T1, OpDotProduct>>())
TFEL_HOST_DEVICE auto norm (const T1 &v)
 return the euclidian norm of a tvector

Variables

template<typename IndexingPolicyType>
constexpr auto indexing_policy_size
 total size of a fixed size policy
template<typename Model>
const KrigingModelAdaptator< Model >::Drifts * KrigingModelAdaptator< Model >::drifts = Model::drifts + 1u
template<MathObjectConcept MathObjectType>
constexpr auto space_dimension
 inline variable to retrieve the space dimension associated with a math object.
template<typename T, typename NM>
const KrigingDefaultModel< 1u, T, NM >::Drifts KrigingDefaultModel< 1u, T, NM >::drifts [2u]
template<typename T, typename NM>
const KrigingDefaultModel< 2u, T, NM >::Drifts KrigingDefaultModel< 2u, T, NM >::drifts [3u]
template<typename T, typename NM>
const KrigingDefaultModel< 3u, T, NM >::Drifts KrigingDefaultModel< 3u, T, NM >::drifts [KrigingDefaultModel< 3u, T, NM >::nb]
template<typename T>
const KrigingPieceWiseLinearModel1D< T >::Drifts KrigingPieceWiseLinearModel1D< T >::drifts [1u]
*brief criterion value NumericType epsilon
iteration_number_type iter
 current iteration number
*brief maximum number of iterations iteration_number_type iterMax
bool is_delta_zeros_defined
 boolean stating if an increment of the unknowns has been computed.
constexpr auto gauss_kronrod_integrate = GaussKronrodQuadrature{}
 inline object implementing the numerical integration using the Gauss-Kronrod's quadrature adaptative scheme

Detailed Description

This namespace contains various classes and functions défining mathematical objects and numerical algorithms.

Tensorial objects

The TFEL/Math library provides two classes for second order tensors:

  • The stensor class which describes symmetric second order tensors.
  • The tensor class which describes general second order (symmetric and unsymmetric) tensors.

Fourth order tensors are linear transformations of second order tensors.

Typedef Documentation

◆ BinaryOperationHandler

template<typename T1, typename T2, typename Op>
using tfel::math::BinaryOperationHandler
Initial value:
typename ComputeBinaryOperationHandler< TagA, TagB, A, B, Op >::Handle Handle
call to ComputeBinaryOperationHandler to get the Handle type.
Definition ComputeBinaryResult.hxx:231

an alias of the handler of an binary operation

◆ BinaryOperationResult

template<typename T1, typename T2, typename Op>
using tfel::math::BinaryOperationResult
Initial value:
typename ComputeBinaryOperationHandler< TagA, TagB, A, B, Op >::Result Result
call to ComputeBinaryOperationHandler to get the Result type.
Definition ComputeBinaryResult.hxx:228

an alias for the result of an binary operation

◆ Complex

template<typename ValueType>
using tfel::math::Complex = std::complex<ValueType>

an alias std::complex.

Parameters
ValueType,underlyingtype.
See also
std::complex.

◆ ConstScatteredView

template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using tfel::math::ConstScatteredView
Initial value:
AccessPolicyBasedView< MappedType, IndexingPolicyType, ScatteredAccessPolicy< MappedType, IndexingPolicyType > > ScatteredView
view storing one pointer per component of the mapped object
Definition ScatteredView.hxx:349

◆ ConstST2toST2View

template<unsigned short N, typename T>
using tfel::math::ConstST2toST2View = ConstView<st2tost2<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ ConstST2toT2View

template<unsigned short N, typename T>
using tfel::math::ConstST2toT2View = ConstView<st2tot2<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ ConstStensorView

template<unsigned short N, typename T>
using tfel::math::ConstStensorView = ConstView<stensor<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ ConstStridedView

template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using tfel::math::ConstStridedView
Initial value:
AccessPolicyBasedView< MappedType, IndexingPolicyType, StridedAccessPolicy< MappedType, IndexingPolicyType > > StridedView
view storing a pointer to the first component of the mapped object and the stride between two success...
Definition StridedView.hxx:73

◆ ConstT2toST2View

template<unsigned short N, typename T>
using tfel::math::ConstT2toST2View = ConstView<t2tost2<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ ConstT2toT2View

template<unsigned short N, typename T>
using tfel::math::ConstT2toT2View = ConstView<t2tot2<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ ConstTensorView

template<unsigned short N, typename T>
using tfel::math::ConstTensorView = ConstView<tensor<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ ConstTMatrixView

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 Parameters
Nnumber of rows
Mnumber of columns
Tvalue type

◆ ConstTVectorView

template<unsigned short N, typename T>
using tfel::math::ConstTVectorView = ConstView<tvector<N, T>>

a simple alias for backward compatibility

Template Parameters
Nnumber of values
Tvalue type

◆ ConstView

template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using tfel::math::ConstView
Initial value:
view of an object from a continuous memory area
Definition View.hxx:157

◆ derivative_type

template<typename FunctionType, typename... VariableTypes>
using tfel::math::derivative_type
Initial value:
typename DerivativeTypeMetaFunction<FunctionType, VariableTypes...>::type
an helper metafunction to define the derivative of a function with respect to several variables.
Definition DerivativeType.hxx:197

a simple alias giving the type representing the derivative of an object of type FunctionType with respect to objects of the type given by the template argument pack VariableTypes.

Parameters
[in]FunctionTypefunction type
[in]VariableTypesvariable types

◆ derivative_view_from_tiny_matrix

template<unsigned short M, typename FunctionType, typename VariableType>
using tfel::math::derivative_view_from_tiny_matrix
Initial value:
typename tfel::math::internals::
BuildDerivativeViewFromTinyMatrix<M, FunctionType, VariableType>::type

a simple alias to a view type on a derivative in tiny matrix of M columns.

Template Parameters
Mnumber of columns of the matrix.
FunctionTypefunction type.
VariableTypevariable type.

a simple alias

◆ EvaluationResult

template<typename ObjectType>
using tfel::math::EvaluationResult
Initial value:
a metafunction giving the result of a the evaluation of an object.
Definition Forward/Expr.hxx:83

a simple alias

◆ index_type

template<typename MathObjectType>
using tfel::math::index_type
Initial value:
a traits class describing a mathematical object
Definition MathObjectTraits.hxx:68

a simple alias

◆ invert_type

template<typename MathObjectType>
using tfel::math::invert_type
Initial value:
MathObjectType>::type
TFEL_HOST_DEVICE constexpr bool isScalar()
a simple helper function
Definition IsScalar.hxx:87
metafunction returning the inverse of a type.
Definition ResultType.hxx:97

a simple alias to compute the type of the inverse of a type

◆ MatrixTraits

template<typename MatrixType>
using tfel::math::MatrixTraits
Initial value:
std::conditional_t<MatrixConcept<MatrixType>,

a simple alias for backward compatibility with versions prior to 4.0

◆ numeric_type

template<typename MathObjectType>
using tfel::math::numeric_type
Initial value:
std::conditional_t<
std::decay_t<MathObjectType>,
typename MathObjectTraits<std::decay_t<MathObjectType>>::value_type>

a simple alias

◆ quantity

template<FundamentalNumericTypeConcept ValueType, int N1 = 0, int N2 = 0, int N3 = 0, int N4 = 0, int N5 = 0, int N6 = 0, int N7 = 0, unsigned int D1 = 1, unsigned int D2 = 1, unsigned int D3 = 1, unsigned int D4 = 1, unsigned int D5 = 1, unsigned int D6 = 1, unsigned int D7 = 1>
using tfel::math::quantity
Initial value:
qt<typename unit::UnitRebind<unit::makeUnitExponents<N1,
N2,
N3,
N4,
N5,
N6,
N7,
D1,
D2,
D3,
D4,
D5,
D6,
D7>()>::type,
base_type<ValueType>>
a simple alias
Definition qt.hxx:376
UnitRebind is a way to simply rebind some unit types from the unit exponents.
Definition Forward/Unit.hxx:301

a simple alias

◆ quantity_or_base_type

template<bool use_qt, FundamentalNumericTypeConcept ValueType, int N1 = 0, int N2 = 0, int N3 = 0, int N4 = 0, int N5 = 0, int N6 = 0, int N7 = 0, unsigned int D1 = 1, unsigned int D2 = 1, unsigned int D3 = 1, unsigned int D4 = 1, unsigned int D5 = 1, unsigned int D6 = 1, unsigned int D7 = 1>
using tfel::math::quantity_or_base_type
Initial value:
std::conditional_t<use_qt,
quantity<ValueType,
N1,
N2,
N3,
N4,
N5,
N6,
N7,
D1,
D2,
D3,
D4,
D5,
D6,
D7>,
ValueType>
qt< typename unit::UnitRebind< unit::makeUnitExponents< N1, N2, N3, N4, N5, N6, N7, D1, D2, D3, D4, D5, D6, D7 >()>::type, base_type< ValueType > > quantity
a simple alias
Definition Forward/qt.hxx:229

a simple alias

◆ scalar_view

template<ScalarConcept ScalarType>
using tfel::math::scalar_view
Initial value:
typename internals::
ScalarViewImplementation<ScalarType, isQuantity<ScalarType>()>::type

view to a scalar

◆ scattered_derivative_view_from_tiny_matrix

template<unsigned short M, typename FunctionType, typename VariableType>
using tfel::math::scattered_derivative_view_from_tiny_matrix
Initial value:
typename tfel::math::
internals::BuildScatteredDerivativeViewFromTinyMatrix<M,
FunctionType,
VariableType>::type

a simple alias to a scattered view type on a derivative in tiny matrix of M columns.

Template Parameters
Mnumber of columns of the matrix.
FunctionTypefunction type.
VariableTypevariable type.
Note
the view stores the pointers to the components of the derivative, so that its type does not depend on M. This parameter is kept for consistency with derivative_view_from_tiny_matrix and strided_derivative_view_from_tiny_matrix.

◆ ScatteredView

template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
using tfel::math::ScatteredView
Initial value:
MappedType,
view of an object whose components are not stored contiguously
Definition ScatteredView.hxx:120
access policy storing one pointer per component of the mapped object
Definition ScatteredView.hxx:58

view storing one pointer per component of the mapped object

◆ selectViewArrayBase

template<typename MappedType, typename IndexingPolicyType>
using tfel::math::selectViewArrayBase
Initial value:
std::conditional_t<
std::is_const_v<MappedType>,
std::conditional_t<
IndexingPolicyType::hasFixedSizes,
std::conditional_t<
IndexingPolicyType::hasFixedSizes,
a base class for fixed sized const arrays.
Definition ConstFixedSizeArrayBase.hxx:30
a base class for fixed sized const arrays.
Definition ConstRuntimeArrayBase.hxx:30
a base class for mutable fixed size arrays.
Definition MutableFixedSizeArrayBase.hxx:31
a base class for mutable arrays with runtime sizes.
Definition MutableRuntimeArrayBase.hxx:31
a standard array policy.
Definition View.hxx:69

a simple alias

◆ ST2toST2View

template<unsigned short N, typename T>
using tfel::math::ST2toST2View = View<st2tost2<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ ST2toT2View

template<unsigned short N, typename T>
using tfel::math::ST2toT2View = View<st2tot2<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ StandardFixedSizeViewsArray

template<FixedSizeArrayTypeDefininigArrayViewConcept ArrayType>
using tfel::math::StandardFixedSizeViewsArray
Initial value:
std::conditional_t<
std::is_const_v<ArrayType>,
ViewsFixedSizeVector<const numeric_type<ArrayType>,
typename ArrayType::indexing_policy::size_type,
typename ArrayType::indexing_policy().size(0)>,
ViewsFixedSizeVector<numeric_type<ArrayType>,
typename ArrayType::indexing_policy::size_type,
typename ArrayType::indexing_policy().size(0)>>

◆ StensorNumType

template<typename StensorType>
using tfel::math::StensorNumType
Initial value:
std::conditional_t<StensorConcept<StensorType>,
std::conditional_t< tfel::typetraits::isScalar< std::decay_t< MathObjectType > >(), std::decay_t< MathObjectType >, typename MathObjectTraits< std::decay_t< MathObjectType > >::value_type > numeric_type
a simple alias
Definition MathObjectTraits.hxx:80

a simple alias for backward compatibility with versions prior to 4.0

◆ StensorTraits

template<typename StensorType>
using tfel::math::StensorTraits
Initial value:
std::conditional_t<StensorConcept<StensorType>,

a simple alias for backward compatibility with versions prior to 4.0

◆ StensorView

template<unsigned short N, typename T>
using tfel::math::StensorView = View<stensor<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ strided_derivative_view_from_tiny_matrix

template<unsigned short M, typename FunctionType, typename VariableType>
using tfel::math::strided_derivative_view_from_tiny_matrix
Initial value:
M,
FunctionType,
VariableType>::type
a metafunction returning a strided view type on a derivative in tiny matrix ordered in row major form...
Definition tmatrix.hxx:226

a simple alias to a strided view type on a derivative in tiny matrix of M columns.

Template Parameters
Mnumber of columns of the matrix.
FunctionTypefunction type.
VariableTypevariable type.

a simple alias

◆ StridedView

template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
using tfel::math::StridedView
Initial value:
MappedType,
access policy storing a pointer to the first component of the mapped object and the stride between tw...
Definition StridedView.hxx:28

view storing a pointer to the first component of the mapped object and the stride between two successive components

◆ StridedViewsFixedSizeVector

template<typename MappedType, typename SizeType, SizeType N>
using tfel::math::StridedViewsFixedSizeVector
Initial value:
MappedType,
a structure used to represent an array of strided views.
Definition StridedViewsArray.hxx:106
Definition StridedViewsArray.hxx:266

◆ T2toST2View

template<unsigned short N, typename T>
using tfel::math::T2toST2View = View<t2tost2<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ T2toT2View

template<unsigned short N, typename T>
using tfel::math::T2toT2View = View<t2tot2<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ TensorView

template<unsigned short N, typename T>
using tfel::math::TensorView = View<tensor<N, T>>

a simple alias for backward compatibility

Template Parameters
Nspace dimension
Tvalue type

◆ TMatrixView

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 Parameters
Nnumber of rows
Mnumber of columns
Tvalue type

◆ TVectorView

template<unsigned short N, typename T>
using tfel::math::TVectorView = View<tvector<N, T>>

a simple alias for backward compatibility

Template Parameters
Nnumber of values
Tvalue type

◆ VectorTraits

template<typename VectorType>
using tfel::math::VectorTraits
Initial value:
std::conditional_t<VectorConcept<VectorType>,

a simple alias for backward compatibility with versions prior to 4.0

◆ ViewDataPointerType

template<typename MappedType>
using tfel::math::ViewDataPointerType
Initial value:
std::conditional_t<std::is_const_v<MappedType>,
const ViewStorageType<MappedType>*,
ViewStorageType<MappedType>*>

◆ ViewsArrayDataPointerType

template<typename MappedType>
using tfel::math::ViewsArrayDataPointerType
Initial value:
std::conditional_t<std::is_const_v<MappedType>,
std::conditional_t< isQuantity< ViewsArrayNumericType< MappedType > >(), base_type< ViewsArrayNumericType< MappedType > >, ViewsArrayNumericType< MappedType > > ViewsArrayStorageType
the type of the values stored in the memory area: the base type of the numeric type for quantities,...
Definition ViewsArray.hxx:98

the pointer type used to build the view

◆ ViewsArrayNumericType

template<typename MappedType>
using tfel::math::ViewsArrayNumericType
Initial value:
std::conditional_t<isScalar<MappedType>(),
std::remove_cv_t<MappedType>,

the numeric type used by the mapped type

◆ ViewsArrayStorageType

template<typename MappedType>
using tfel::math::ViewsArrayStorageType
Initial value:
std::conditional_t<isQuantity<ViewsArrayNumericType<MappedType>>(),
std::conditional_t< isScalar< MappedType >(), std::remove_cv_t< MappedType >, numeric_type< MappedType > > ViewsArrayNumericType
the numeric type used by the mapped type
Definition ViewsArray.hxx:89

the type of the values stored in the memory area: the base type of the numeric type for quantities, as for views (see ViewStorageType)

◆ ViewsFixedSizeVector

template<typename MappedType, typename SizeType, SizeType N, SizeType Stride = getViewsArrayMinimalStride<MappedType>()>
using tfel::math::ViewsFixedSizeVector
Initial value:
MappedType,
a structure used to represent an array of views.
Definition ViewsArray.hxx:137

◆ ViewStorageType

template<typename MappedType>
using tfel::math::ViewStorageType
Initial value:
std::conditional_t<
base_type<numeric_type<std::remove_cv_t<MappedType>>>,
numeric_type<std::remove_cv_t<MappedType>>>
TFEL_HOST_DEVICE constexpr bool isQuantity()
a function testing if a type is a quantity
Definition Forward/qt.hxx:168

Function Documentation

◆ abs() [1/9]

template<ScalarConcept NumericType>
TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const Complex< NumericType > & s)
nodiscardconstexpr
Returns
the norm of a complex
Parameters
[in]svalue

◆ abs() [2/9]

template<unsigned short N, typename T, typename Operation>
TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const Expr< tvector< N, T >, Operation > & e)
constexprnoexcept
Returns
the sum of the absolute values of the components of an expression whose result is a tvector
Parameters
[in]eexpression

◆ abs() [3/9]

template<ScalarConcept NumericType>
TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const NumericType & s)
nodiscardconstexprnoexcept
Returns
the absolute value of a scalar
Parameters
[in]svalue

◆ abs() [4/9]

TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const ST2toST2Concept auto & v)
constexprnoexcept
Returns
the sum of the absolute values of all components of an linear application transforming a symmetric tensor in a symmetric tensor
Parameters
[in]slinear application transforming a symmetric tensor in a symmetric tensor

◆ abs() [5/9]

TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const ST2toT2Concept auto & t)
constexprnoexcept
Returns
the sum of the absolute values of all components of an linear application transforming a tensor in a tensor
Parameters
[in]tfourth order tensor

◆ abs() [6/9]

TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const StensorConcept auto & s)
constexprnoexcept
Returns
the sum of the absolute values of all components of a symmetric tensor
Parameters
[in]ssymmetric tensor

◆ abs() [7/9]

TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const T2toST2Concept auto & t)
constexprnoexcept
Returns
the sum of the absolute values of all components of an linear application transforming a symmetric tensor in an unsymmetric tensor
Parameters
[in]tlinear application transforming a symmetric tensor in an unsymmetric tensor

◆ abs() [8/9]

TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const T2toT2Concept auto & t)
constexprnoexcept
Returns
the sum of the absolute values of all components of an linear application transforming a tensor in a tensor
Parameters
[in]tfourth order tensor

◆ abs() [9/9]

TFEL_HOST_DEVICE constexpr auto tfel::math::abs ( const TensorConcept auto & t)
constexprnoexcept
Returns
the sum of the absolute value of the components of a tensor
Parameters
[in]ttensor

◆ absolute_value()

template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto tfel::math::absolute_value ( const StensorType & s,
const bool b = false )

compute the absolute value of a symmetric tensor

Parameters
s: tensor
b: if true, refinement of eigen values is performed

◆ applyPowellDogLegAlgorithm()

template<unsigned short N, typename NumericType>
TFEL_HOST_DEVICE void tfel::math::applyPowellDogLegAlgorithm ( tvector< N, NumericType > & delta_zeros,
const tmatrix< N, N, NumericType > & jacobian,
const tvector< N, NumericType > & fzeros,
const NumericType radius )
noexcept

apply Powell' dog leg algorithm

Template Parameters
Nsize of the system of non linear equations
NumericTypenumeric type
Parameters
[in,out]delta_zeroscurrent correction to the solution
[in]jacobiancurrent estimate of the jacobian matrix
[in]fzeroscurrent residual
[in]radiustrust region size

◆ areIndexingPoliciesCompatibleAtRunTime() [1/2]

template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool tfel::math::areIndexingPoliciesCompatibleAtRunTime ( const IndexingPolicy1 & p1,
const IndexingPolicy2 & p2 )
constexpr
Returns
if two indexing policies are compatible at runtime.
Template Parameters
IndexingPolicy1first indexing policy
IndexingPolicy2second indexing policy
Parameters
[in]p1first indexing policy
[in]p2second indexing policy
Note
this function is a simple wrapper around IndexingPoliciesCompatiblityCheck::runtimeTimeCheck.

◆ areIndexingPoliciesCompatibleAtRunTime() [2/2]

template<typename IndexingPolicy1, typename IndexingPolicy2>
bool tfel::math::areIndexingPoliciesCompatibleAtRunTime ( const IndexingPolicy1 & p1,
const IndexingPolicy2 & p2 )
constexpr
Returns
if two indexing policies are compatible at runtime.
Template Parameters
IndexingPolicy1first indexing policy
IndexingPolicy2second indexing policy
Parameters
[in]p1first indexing policy
[in]p2second indexing policy
Note
this function is a simple wrapper around IndexingPoliciesCompatiblityCheck::runtimeTimeCheck.

◆ broyden() [1/2]

template<unsigned short N, typename T, const tvector< N, T >(*)(const tvector< N, T > &) f>
std::pair< bool, tvector< N, T > > tfel::math::broyden ( const tvector< N, T > & x0,
const T e,
const unsigned short n )

Find the root of a function using the first Broyden algorithm. The jacobian is initially approximated by the identity matrix.

Parameters
N: size of the unknown
T: numerical type
f: function which root is sought after
x0: initial guess
e: convergence criterium
n: maximum number of iterations
Returns
a pair whose first member is true is the algorithm converged and whose second member contains the solution

◆ broyden() [2/2]

template<unsigned short N, typename T, const tvector< N, T >(*)(const tvector< N, T > &) f>
std::pair< bool, tvector< N, T > > tfel::math::broyden ( const tvector< N, T > & x0,
tmatrix< N, N, T > & J,
const T e,
const unsigned short n )

Find the root of a function using the first Broyden algorithm

Parameters
N: size of the unknown
T: numerical type
f: function which root is sought after
x0: initial guess
A: initial approximation of the jacobian
e: convergence criterium
n: maximum number of iterations
Returns
a pair whose first member is true is the algorithm converged and whose second member contains the solution

◆ broyden2() [1/2]

template<unsigned short N, typename T, const tvector< N, T >(*)(const tvector< N, T > &) f>
std::pair< bool, tvector< N, T > > tfel::math::broyden2 ( const tvector< N, T > & x0,
const T e,
const unsigned short n )

Find the root of a function using the first Broyden algorithm. The jacobian is initially approximated by the identity matrix.

Parameters
N: size of the unknown
T: numerical type
f: function which root is sought after
x0: initial guess
e: convergence criterium
n: maximum number of iterations
Returns
a pair whose first member is true is the algorithm converged and whose second member contains the solution

◆ broyden2() [2/2]

template<unsigned short N, typename T, const tvector< N, T >(*)(const tvector< N, T > &) f>
std::pair< bool, tvector< N, T > > tfel::math::broyden2 ( const tvector< N, T > & x0,
tmatrix< N, N, T > & iJ,
const T e,
const unsigned short n )

Find the root of a function using the second Broyden algorithm

Parameters
N: size of the unknown
T: numerical type
f: function which root is sought after
x0: initial guess
A: initial approximation of the jacobian
e: convergence criterium
n: maximum number of iterations
Returns
a pair whose first member is true is the algorithm converged and whose second member contains the solution

◆ callUpdateOrCheckJacobian()

TFEL_HOST_DEVICE bool tfel::math::callUpdateOrCheckJacobian ( )
nodiscardprotected

call the updateOrCheckJacobian method of the derived class.

Returns
false if this method returns a boolean equal to false, true otherwise

◆ change_basis() [1/6]

template<ST2toST2Concept ST2toST2Type>
TFEL_HOST_DEVICE constexpr auto tfel::math::change_basis ( const ST2toST2Type & s,
const rotation_matrix< numeric_type< ST2toST2Type > > & r )
constexprnoexcept
Returns
change the basis of a st2tost2
Parameters
[in]s: st2tost2
[in]r: rotation matrix

◆ change_basis() [2/6]

template<StensorConcept StensorType>
TFEL_HOST_DEVICE constexpr auto tfel::math::change_basis ( const StensorType & ,
const rotation_matrix< numeric_type< StensorType > > &  )
constexprnoexcept

rotate a symmetric tensor using a rotation matrix

Parameters
[in]ssymmetric tensor to be rotated
[in]rrotation matrix
Returns
the rotated symmetric tensor

◆ change_basis() [3/6]

template<T2toST2Concept T2toST2Type>
TFEL_HOST_DEVICE constexpr auto tfel::math::change_basis ( const T2toST2Type & s,
const rotation_matrix< numeric_type< T2toST2Type > > & r )
constexprnoexcept
Returns
change the basis of a t2tost2
Parameters
[in]st2tost2
[in]rrotation matrix

◆ change_basis() [4/6]

template<T2toT2Concept T2toT2Type>
TFEL_HOST_DEVICE constexpr auto tfel::math::change_basis ( const T2toT2Type & s,
const rotation_matrix< numeric_type< T2toT2Type > > & r )
constexprnoexcept
Returns
change the basis of a t2tot2
Parameters
[in]s: t2tot2
[in]r: rotation matrix

◆ change_basis() [5/6]

template<TensorConcept TensorType>
TFEL_HOST_DEVICE constexpr auto tfel::math::change_basis ( const TensorType & t,
const rotation_matrix< numeric_type< TensorType > > & r )
constexprnoexcept

rotate a tensor using a rotation matrix

Parameters
[in]stensor to be rotated
[in]rrotation matrix
Returns
the rotated tensor

◆ change_basis() [6/6]

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 > &  )
constexprnoexcept

rotate a vector using a rotation matrix.

The convention is the one of the other mathematical objects: the components of the rotated vector are \(v'_{i}=r_{ki}\,v_{k}\). In 1D, the vector is unchanged. In 2D, only the in-plane block of the rotation matrix is used.

Parameters
[in]vvector to be rotated
[in]rrotation matrix
Returns
the rotated vector

◆ checkConvergence()

TFEL_HOST_DEVICE constexpr bool tfel::math::checkConvergence ( const NumericType e) const
nodiscardconstexprprotectednoexcept

check the convergence of the method

Parameters
[in]ecurrent error

◆ checkIndexingPoliciesCompatiblity() [1/2]

template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool tfel::math::checkIndexingPoliciesCompatiblity ( )
constexpr

check if two indexing policies can be compatible.

Template Parameters
IndexingPolicy1first indexing policy
IndexingPolicy2second indexing policy
Note
this function is a simple wrapper around IndexingPoliciesCompatiblityCheck::checkIndexingPoliciesCompatiblity.

◆ checkIndexingPoliciesCompatiblity() [2/2]

template<typename IndexingPolicy1, typename IndexingPolicy2>
bool tfel::math::checkIndexingPoliciesCompatiblity ( )
constexpr

check if two indexing policies can be compatible.

Template Parameters
IndexingPolicy1first indexing policy
IndexingPolicy2second indexing policy
Note
this function is a simple wrapper around IndexingPoliciesCompatiblityCheck::checkIndexingPoliciesCompatiblity.

◆ checkIndexingPoliciesRuntimeCompatiblity() [1/2]

template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr void tfel::math::checkIndexingPoliciesRuntimeCompatiblity ( const IndexingPolicy1 & p1,
const IndexingPolicy2 & p2 )
constexpr

check if two indexing policies are compatible at runtime.

Template Parameters
IndexingPolicy1first indexing policy
IndexingPolicy2second indexing policy
Parameters
[in]p1first indexing policy
[in]p2second indexing policy
Note
this function simply calls areIndexingPoliciesCompatibleAtRunTime and reports a contract violation if the two indexing policies are not compatible.

◆ checkIndexingPoliciesRuntimeCompatiblity() [2/2]

template<typename IndexingPolicy1, typename IndexingPolicy2>
void tfel::math::checkIndexingPoliciesRuntimeCompatiblity ( const IndexingPolicy1 & p1,
const IndexingPolicy2 & p2 )
constexpr

check if two indexing policies are compatible at runtime.

Template Parameters
IndexingPolicy1first indexing policy
IndexingPolicy2second indexing policy
Parameters
[in]p1first indexing policy
[in]p2second indexing policy
Note
this function simply calls areIndexingPoliciesCompatibleAtRunTime and reports a contract violation if the two indexing policies are not compatible.

◆ checkIndicesValiditity()

template<typename IndexingPolicy, typename... Indices>
TFEL_HOST_DEVICE constexpr void tfel::math::checkIndicesValiditity ( )
constexprnoexcept

a simple function to check that the type of the indices are compatible with the given indexing policy

Template Parameters
IndexingPolicythe indexing policy
Indiceslist of indices types

◆ checkThatAllSpaceDimensionsAreEqual()

template<MathObjectConcept MathObjectType1, MathObjectConcept... MathObjectTypes>
TFEL_HOST_DEVICE constexpr bool tfel::math::checkThatAllSpaceDimensionsAreEqual ( )
nodiscardconstexprnoexcept

an helper function checking if all the given math objects have the space dimension.

Template Parameters
MathObjectType1math object
MathObjectTypesmath objects

◆ checkUnitCompatibility()

template<unit::UnitConcept Unit, typename T>
requires (ScalarConcept<T> || MathObjectConcept<T>)
bool tfel::math::checkUnitCompatibility ( )
constexpr

this function checks if the given type matches the given unit if it built on top of a quantity. If the given type is built on a plain old scalar type, this function always returns true.

This function allows to add requirements on a template parameter of a function. Let us consider the following function:

template <tfel::math::ScalarConcept StressType>
StressType computeLambda(
const StressType& young,
const typename tfel::math::ScalarTypeRebind<StressType>::real& nu)
requires(
StressType>());
constexpr bool checkUnitCompatibility()
this function checks if the given type matches the given unit if it built on top of a quantity....
Definition types.ixx:41
Declares the Stress unit.
Definition Forward/Unit.hxx:249

Thanks to the checkUnitCompatibility function, this function only compiles if StressType either:

  • maches qt<Stress, NumericType>, where NumericType is a plain old floatting point type such as double, float or long double.
  • is a is a plain old floatting point type.
Template Parameters
Unitunit used for the test
Ttested type

◆ computeAdjugateDeterminantDerivative() [1/2]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeAdjugateDeterminantDerivative ( const TensorConcept auto & F)
constexprnoexcept
Returns
the adjugate of a tensor, \(\det\left(F\right)\,F^{-1}\), i.e. the transpose of the derivative of the determinant
Parameters
[in]Ftensor where the the adjugate is evaluated

◆ computeAdjugateDeterminantDerivative() [2/2]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeAdjugateDeterminantDerivative ( TensorConcept auto & adj,
const TensorConcept auto & F )
constexprnoexcept

compute the adjugate of a tensor, \(\det\left(F\right)\,F^{-1}\), i.e. the transpose of the derivative of the determinant with respect to its argument.

Parameters
[out]adjugate
[in]argument

◆ computeAdjugateDeterminantSecondDerivative()

template<TensorConcept TensorType>
requires (isScalar<numeric_type<TensorType>>())
TFEL_HOST_DEVICE constexpr auto tfel::math::computeAdjugateDeterminantSecondDerivative ( const TensorType & t)
constexprnoexcept

compute the derivative of the adjugate of a tensor, \(\det\left(F\right)\,F^{-1}\), i.e. of the result of computeAdjugateDeterminantDerivative

Parameters
[in]stensor

◆ computeCauchyStressDerivativeFromKirchhoffStressDerivative() [1/2]

template<T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires (getSpaceDimension<T2toST2Type>() == getSpaceDimension<StensorType>() && getSpaceDimension<T2toST2Type>() == getSpaceDimension<TensorType>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond)
TFEL_HOST_DEVICE constexpr auto tfel::math::computeCauchyStressDerivativeFromKirchhoffStressDerivative ( const T2toST2Type & dt,
const StensorType & s,
const TensorType & F )
constexprnoexcept

compute the Cauchy stress derivative from the Kirchhoff stress derivative

Parameters
[in]dtKirchhoff stress derivative
[in]sCauchy stress
[in]Fdeformation gradient

◆ computeCauchyStressDerivativeFromKirchhoffStressDerivative() [2/2]

template<T2toST2Concept T2toST2ResultType, T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires ( getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<T2toST2Type>() && getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<StensorType>() && getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<TensorType>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond && isAssignableTo<typename ComputeBinaryResult<numeric_type<T2toST2Type>, numeric_type<StensorType>, OpPlus>::Result, numeric_type<T2toST2ResultType>>())
TFEL_HOST_DEVICE constexpr void tfel::math::computeCauchyStressDerivativeFromKirchhoffStressDerivative ( T2toST2ResultType & ds,
const T2toST2Type & dt_K,
const StensorType & s,
const TensorType & F )
constexprnoexcept

compute the Cauchy stress derivative from the Kirchhoff stress derivative with respect to the deformation gradient

Parameters
[out]ds: Cauchy stress derivative
[in]dt_K: Kirchhoff stress derivative
[in]s: Cauchy stress
[in]F: deformation gradient

◆ computeCubicSplineInterpolation()

template<bool extrapolate, typename CollocationPointContainer, typename AbscissaType>
auto tfel::math::computeCubicSplineInterpolation ( const CollocationPointContainer & points,
const AbscissaType x )
constexpr
Returns
the interpolation of a set of collocation points at the given abscissa
Parameters
[in]pointscollocation points
[in]xabscissa
Template Parameters
extrapolateboolean stating if extrapolation must be performed
Note
the points are assumed ordered from lower to greater values.

◆ computeCubicSplineInterpolationAndDerivative()

template<bool extrapolate, typename CollocationPointContainer, typename AbscissaType>
auto tfel::math::computeCubicSplineInterpolationAndDerivative ( const CollocationPointContainer & points,
const AbscissaType x )
constexpr
Returns
the interpolation of a set of collocation points at the given abscissa and the derivative at this point
Parameters
[in]pointscollocation points
[in]xabscissa
Template Parameters
extrapolateboolean stating if extrapolation must be performed
Note
the points are assumed ordered from lower to greater values.

◆ computeDeterminantDerivative() [1/4]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeterminantDerivative ( const StensorConcept auto & s)
constexprnoexcept
Returns
the derivative of the determinant
Parameters
[in]stensor where the the determinant is evaluated

◆ computeDeterminantDerivative() [2/4]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeterminantDerivative ( const TensorConcept auto & F)
constexprnoexcept
Returns
the derivative of the determinant
Parameters
[in]Ftensor where the the determinant is evaluated

◆ computeDeterminantDerivative() [3/4]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeterminantDerivative ( StensorConcept auto & dJ,
const StensorConcept auto & s )
constexprnoexcept

compute the derivative of the determinant with respect to its argument.

Parameters
[out]dJdeterminant derivative
[in]sargument

◆ computeDeterminantDerivative() [4/4]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeterminantDerivative ( TensorConcept auto & dJ,
const TensorConcept auto & F )
constexprnoexcept

compute the derivative of the determinant with respect to its argument.

Parameters
[out]determinant derivative
[in]argument

◆ computeDeterminantSecondDerivative() [1/2]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeterminantSecondDerivative ( const StensorConcept auto & s)
constexprnoexcept

compute the second derivative of determinant of a

Parameters
[in]stensor

◆ computeDeterminantSecondDerivative() [2/2]

template<TensorConcept TensorType>
requires (isScalar<numeric_type<TensorType>>())
TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeterminantSecondDerivative ( const TensorType & t)
constexprnoexcept

compute the second derivative of the determinant of a tensor

Parameters
[in]stensor

◆ computeDeviatorDeterminantDerivative() [1/2]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeviatorDeterminantDerivative ( const StensorConcept auto & s)
constexprnoexcept
Returns
the derivative of the determinant of the deviator of symmetric tensor.

Let \(\underline{s}\) be a symmetric tensor and \(J_{3}\) be the determinant of \(\underline{s}'\) the deviator of \(\underline{s}\):

\[J_{3} = \mathrm{det}\left(\underline{s}'\right) = \mathrm{det}\left(\underline{s}-\mathrm{tr}\left(\underline{s}'\right)\,\underline{I}\right) \]

This function computes \(\displaystyle\frac{\partial J_{3}}{\partial \underline{\sigma}}\).

Parameters
[in]stensor where the the determinant is evaluated

◆ computeDeviatorDeterminantDerivative() [2/2]

TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeviatorDeterminantDerivative ( StensorConcept auto & dJ,
const StensorConcept auto & s )
constexprnoexcept

compute the derivative of the determinant with respect to its argument.

Parameters
[out]dJdeterminant derivative
[in]sargument

◆ computeDeviatorDeterminantSecondDerivative()

TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeviatorDeterminantSecondDerivative ( const StensorConcept auto & s)
constexprnoexcept

compute the second derivative of the determinant of the deviator of symmetric tensor.

Let \(\underline{s}\) be a symmetric tensor and \(J_{3}\) be the determinant of \(\underline{s}'\) the deviator of \(\underline{s}\):

\[ J_{3} = \mathrm{det}\left(\underline{s}'\right) = \mathrm{det}\left(\underline{s}-\mathrm{tr}\left(\underline{s}'\right)\,\underline{I}\right) \]

This function computes \(\displaystyle\frac{\partial^{2} J_{3}}{\partial \underline{\sigma}^{2}}\).

Parameters
[in]stensor

◆ computeGreenLagrangeTensor()

TFEL_HOST_DEVICE constexpr auto tfel::math::computeGreenLagrangeTensor ( const TensorConcept auto & t)
constexprnoexcept
Returns
the left Green-Lagrange tensor
Parameters
[in]ttensor

◆ computeInverseNansonTransform() [1/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto tfel::math::computeInverseNansonTransform ( const tvector< N, ValueType > & n,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(F^{T}\,n/J\) of the reference configuration whose transform by Nanson's formula is the given vector
Parameters
[in]nvector in the current configuration
[in]Fdeformation gradient
Note
In space dimensions one and two, the given vector is a plane vector: its out of plane component is taken equal to zero and \(J\) is the three dimensional determinant, so the out of plane stretch, given by the third component of the deformation gradient, is taken into account. The out of plane component of the result is then null.

◆ computeInverseNansonTransform() [2/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
auto tfel::math::computeInverseNansonTransform ( const tvector< N, ValueType > & n,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(F^{T}\,n/J\) of the reference configuration whose transform by Nanson's formula is the given vector
Parameters
[in]nvector in the current configuration
[in]Fdeformation gradient
Note
In space dimensions one and two, the given vector is a plane vector: its out of plane component is taken equal to zero and \(J\) is the three dimensional determinant, so the out of plane stretch, given by the third component of the deformation gradient, is taken into account. The out of plane component of the result is then null.

◆ computeInverseNansonTransformAndDerivatives() [1/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto tfel::math::computeInverseNansonTransformAndDerivatives ( const tvector< N, ValueType > & n,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(N=F^{T}\,n/J\) of the reference configuration whose transform by Nanson's formula is the given vector, its derivative with respect to \(n\) and its derivative with respect to \(F\)
Parameters
[in]nvector in the current configuration
[in]Fdeformation gradient

◆ computeInverseNansonTransformAndDerivatives() [2/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
auto tfel::math::computeInverseNansonTransformAndDerivatives ( const tvector< N, ValueType > & n,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(N=F^{T}\,n/J\) of the reference configuration whose transform by Nanson's formula is the given vector, its derivative with respect to \(n\) and its derivative with respect to \(F\)
Parameters
[in]nvector in the current configuration
[in]Fdeformation gradient

◆ computeInversePiolaTransform() [1/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto tfel::math::computeInversePiolaTransform ( const tvector< N, ValueType > & Q,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(F\,Q/J\) of the current configuration whose Piola transform is the given vector
Parameters
[in]Qvector in the reference configuration
[in]Fdeformation gradient
Note
In space dimensions one and two, the given vector is a plane vector: its out of plane component is taken equal to zero and \(J\) is the three dimensional determinant, so the out of plane stretch, given by the third component of the deformation gradient, is taken into account. The out of plane component of the result is then null.

◆ computeInversePiolaTransform() [2/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
auto tfel::math::computeInversePiolaTransform ( const tvector< N, ValueType > & Q,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(F\,Q/J\) of the current configuration whose Piola transform is the given vector
Parameters
[in]Qvector in the reference configuration
[in]Fdeformation gradient
Note
In space dimensions one and two, the given vector is a plane vector: its out of plane component is taken equal to zero and \(J\) is the three dimensional determinant, so the out of plane stretch, given by the third component of the deformation gradient, is taken into account. The out of plane component of the result is then null.

◆ computeInversePiolaTransformAndDerivatives() [1/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto tfel::math::computeInversePiolaTransformAndDerivatives ( const tvector< N, ValueType > & Q,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(q=F\,Q/J\) of the current configuration whose Piola transform is the given vector, its derivative with respect to \(Q\) and its derivative with respect to \(F\)
Parameters
[in]Qvector in the reference configuration
[in]Fdeformation gradient

◆ computeInversePiolaTransformAndDerivatives() [2/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
auto tfel::math::computeInversePiolaTransformAndDerivatives ( const tvector< N, ValueType > & Q,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(q=F\,Q/J\) of the current configuration whose Piola transform is the given vector, its derivative with respect to \(Q\) and its derivative with respect to \(F\)
Parameters
[in]Qvector in the reference configuration
[in]Fdeformation gradient

◆ computeIsotropicFunction()

template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, StensorConcept StensorType>
TFEL_HOST_DEVICE auto tfel::math::computeIsotropicFunction ( const Function & f,
const StensorType & s,
const bool b = false )
Returns
the value of an isotropic function
Parameters
[in]ffunction
[in]ssymmetric tensor
[in]bif true, refinement of eigen values is performed

◆ computeIsotropicFunctionAndDerivative()

template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, typename FunctionDerivative, StensorConcept StensorType>
TFEL_HOST_DEVICE auto tfel::math::computeIsotropicFunctionAndDerivative ( const Function & f,
const FunctionDerivative & df,
const StensorType & s,
const numeric_type< StensorType > eps,
const bool b = false )
Returns
the value and the derivative of an isotropic function
Parameters
[in]ffunction
[in]dfderivative of the function
[in]ssymmetric tensor
[in]epsabsolute threshold below which two eigenvalues are considered equal. It must be well above the rounding errors of the eigenvalues, for instance sqrt(epsilon) times the largest absolute eigenvalue (see the documentation of tensors)
[in]bif true, refinement of eigen values is performed

◆ computeIsotropicFunctionDerivative()

template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, typename FunctionDerivative, StensorConcept StensorType>
TFEL_HOST_DEVICE auto tfel::math::computeIsotropicFunctionDerivative ( const Function & f,
const FunctionDerivative & df,
const StensorType & s,
const numeric_type< StensorType > eps,
const bool b = false )
Returns
the derivative of an isotropic function
Parameters
[in]ffunction
[in]dfderivative of the function
[in]ssymmetric tensor
[in]epsabsolute threshold below which two eigenvalues are considered equal. It must be well above the rounding errors of the eigenvalues, for instance sqrt(epsilon) times the largest absolute eigenvalue (see the documentation of tensors)
[in]bif true, refinement of eigen values is performed

◆ computeKirchhoffStressDerivativeFromCauchyStressDerivative() [1/2]

template<T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires (getSpaceDimension<T2toST2Type>() == getSpaceDimension<StensorType>() && getSpaceDimension<T2toST2Type>() == getSpaceDimension<TensorType>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond)
TFEL_HOST_DEVICE constexpr auto tfel::math::computeKirchhoffStressDerivativeFromCauchyStressDerivative ( const T2toST2Type & ds,
const StensorType & s,
const TensorType & F )
constexprnoexcept

compute the Cauchy stress derivative from the Kirchhoff stress derivative

Parameters
[in]dtKirchhoff stress derivative
[in]sCauchy stress
[in]Fdeformation gradient

◆ computeKirchhoffStressDerivativeFromCauchyStressDerivative() [2/2]

template<T2toST2Concept T2toST2ResultType, T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires ( getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<T2toST2Type>() && getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<StensorType>() && getSpaceDimension<T2toST2ResultType>() == getSpaceDimension<TensorType>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond && isAssignableTo<typename ComputeBinaryResult<numeric_type<T2toST2Type>, numeric_type<StensorType>, OpPlus>::Result, numeric_type<T2toST2ResultType>>())
TFEL_HOST_DEVICE constexpr void tfel::math::computeKirchhoffStressDerivativeFromCauchyStressDerivative ( T2toST2ResultType & dt_K,
const T2toST2Type & ds,
const StensorType & s,
const TensorType & F )
constexprnoexcept

compute the Kirchhoff stress derivative from the Cauchy stress derivative with respect to the deformation gradient

Parameters
[out]dt_K: Kirchhoff stress derivative
[in]ds: Cauchy stress derivative
[in]s: Cauchy stress
[in]F: deformation gradient

◆ computeLeftCauchyGreenTensor()

TFEL_HOST_DEVICE constexpr auto tfel::math::computeLeftCauchyGreenTensor ( const TensorConcept auto & t)
constexprnoexcept
Returns
the left Cauchy-Green tensor
Parameters
[in]ttensor

◆ computeLinearInterpolation()

template<bool extrapolate, typename AbscissaContainer, typename ValueContainer, typename AbscissaType>
auto tfel::math::computeLinearInterpolation ( const AbscissaContainer & abscissae,
const ValueContainer & values,
const AbscissaType a )
constexpr

compute a linear interpolation based on the given abscissae and values

Parameters
[in]abscissaecontainer containing the abscissae
[in]valuescontainer containing the values
[in]apoint where the interpolation is computed
Template Parameters
extrapolateboolean stating if extrapolation must be performed
Note
the abscissae are assumed ordered from lower to greater values.

◆ computeLinearInterpolationAndDerivative()

template<bool extrapolate, typename AbscissaContainer, typename ValueContainer, typename AbscissaType>
auto tfel::math::computeLinearInterpolationAndDerivative ( const AbscissaContainer & abscissae,
const ValueContainer & values,
const AbscissaType a )
constexpr

compute a linear interpolation based on the given abscissae and values and the associated derivative

Parameters
[in]abscissaecontainer containing the abscissae
[in]valuescontainer containing the values
[in]apoint where the interpolation is computed
Template Parameters
extrapolateboolean stating if extrapolation must be performed
Note
the abscissae are assumed ordered from lower to greater values.

◆ computeNansonTransform() [1/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto tfel::math::computeNansonTransform ( const tvector< N, ValueType > & n,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(J\,F^{-T}\,N\) given by Nanson's formula. If \(N\) is an oriented surface element of the reference configuration, the result is the oriented surface element of the current configuration.
Parameters
[in]nvector in the reference configuration
[in]Fdeformation gradient
Note
In space dimensions one and two, the given vector is a plane vector: its out of plane component is taken equal to zero and \(J\) is the three dimensional determinant, so the out of plane stretch, given by the third component of the deformation gradient, is taken into account. The out of plane component of the result is then null.

◆ computeNansonTransform() [2/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
auto tfel::math::computeNansonTransform ( const tvector< N, ValueType > & n,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(J\,F^{-T}\,N\) given by Nanson's formula. If \(N\) is an oriented surface element of the reference configuration, the result is the oriented surface element of the current configuration.
Parameters
[in]nvector in the reference configuration
[in]Fdeformation gradient
Note
In space dimensions one and two, the given vector is a plane vector: its out of plane component is taken equal to zero and \(J\) is the three dimensional determinant, so the out of plane stretch, given by the third component of the deformation gradient, is taken into account. The out of plane component of the result is then null.

◆ computeNansonTransformAndDerivatives() [1/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto tfel::math::computeNansonTransformAndDerivatives ( const tvector< N, ValueType > & Nv,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(n=J\,F^{-T}\,N\) given by Nanson's formula, its derivative with respect to \(N\) and its derivative with respect to \(F\)
Parameters
[in]Nvector in the reference configuration
[in]Fdeformation gradient

◆ computeNansonTransformAndDerivatives() [2/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
auto tfel::math::computeNansonTransformAndDerivatives ( const tvector< N, ValueType > & Nv,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the vector \(n=J\,F^{-T}\,N\) given by Nanson's formula, its derivative with respect to \(N\) and its derivative with respect to \(F\)
Parameters
[in]Nvector in the reference configuration
[in]Fdeformation gradient

◆ computeNumericalDerivative()

template<typename FunctionType, typename VariableType, typename ScalarType>
derivative_type< std::invoke_result_t< FunctionType, VariableType >, VariableType > tfel::math::computeNumericalDerivative ( const FunctionType & f,
const VariableType & v,
const ScalarType & e )

compute a numerical approximation of the derivative a a function with respect to a variable with a centered finite difference scheme.

Template Parameters
FunctionTypetype of the function to be differentiated.
VariableTypetype of the variable.
ScalarTypetype of the perturbation value.
Parameters
[in]ffunction.
[in]vvariable.
[in]eperturbation value.

◆ computePiolaTransform() [1/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto tfel::math::computePiolaTransform ( const tvector< N, ValueType > & q,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the Piola transform \(J\,F^{-1}\,q\) of a vector defined in the current configuration
Parameters
[in]qvector in the current configuration
[in]Fdeformation gradient
Note
This operation gives the heat flux in the reference configuration from the heat flux in the current configuration.
In space dimensions one and two, the given vector is a plane vector: its out of plane component is taken equal to zero and \(J\) is the three dimensional determinant, so the out of plane stretch, given by the third component of the deformation gradient, is taken into account. The out of plane component of the result is then null.

◆ computePiolaTransform() [2/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
auto tfel::math::computePiolaTransform ( const tvector< N, ValueType > & q,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the Piola transform \(J\,F^{-1}\,q\) of a vector defined in the current configuration
Parameters
[in]qvector in the current configuration
[in]Fdeformation gradient
Note
This operation gives the heat flux in the reference configuration from the heat flux in the current configuration.
In space dimensions one and two, the given vector is a plane vector: its out of plane component is taken equal to zero and \(J\) is the three dimensional determinant, so the out of plane stretch, given by the third component of the deformation gradient, is taken into account. The out of plane component of the result is then null.

◆ computePiolaTransformAndDerivatives() [1/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
TFEL_HOST_DEVICE constexpr auto tfel::math::computePiolaTransformAndDerivatives ( const tvector< N, ValueType > & q,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the Piola transform \(Q=J\,F^{-1}\,q\) of a vector, its derivative with respect to \(q\) and its derivative with respect to \(F\)
Parameters
[in]qvector in the current configuration
[in]Fdeformation gradient

◆ computePiolaTransformAndDerivatives() [2/2]

template<unsigned short N, typename ValueType, tfel::math::NoUnitTensorConcept DeformationGradientType>
requires (getSpaceDimension<DeformationGradientType>() == N)
auto tfel::math::computePiolaTransformAndDerivatives ( const tvector< N, ValueType > & q,
const DeformationGradientType & F )
nodiscardconstexprnoexcept
Returns
the Piola transform \(Q=J\,F^{-1}\,q\) of a vector, its derivative with respect to \(q\) and its derivative with respect to \(F\)
Parameters
[in]qvector in the current configuration
[in]Fdeformation gradient

◆ computePiolaTransformOfIdentityMatrixInReferenceConfiguration() [1/2]

template<tfel::math::NoUnitTensorConcept DeformationGradientType>
TFEL_HOST_DEVICE constexpr auto tfel::math::computePiolaTransformOfIdentityMatrixInReferenceConfiguration ( const DeformationGradientType & F)
nodiscardconstexprnoexcept
Returns
the Piola transform of the identity matrix of the current configuration, i.e. the matrix \(J\,F^{-1}\,F^{-T}\) of the reference configuration, where \(J=\det\left(F\right)\), which is also \(J\,C^{-1}\), \(C^{-1}\) being the inverse of the right Cauchy-Green tensor
Parameters
[in]Fdeformation gradient
Note
This operation is useful when computing the thermal conductivity matrix in the reference frame
In space dimensions one and two, the returned matrix is the in plane block of the result obtained in the three dimensional case, where the out of plane stretch, given by the third component of the deformation gradient, is taken into account. This block cannot be deduced from the in plane components of the deformation gradient alone: in space dimension two, the missing out of plane component of the three dimensional result is \(\det\left(F\right)/F_{33}^{2}\).
In space dimension one, only the three diagonal components of the deformation gradient are available and the returned matrix is \(F_{22}\,F_{33}/F_{11}\).

◆ computePiolaTransformOfIdentityMatrixInReferenceConfiguration() [2/2]

template<tfel::math::NoUnitTensorConcept DeformationGradientType>
auto tfel::math::computePiolaTransformOfIdentityMatrixInReferenceConfiguration ( const DeformationGradientType & F)
nodiscardconstexprnoexcept
Returns
the Piola transform of the identity matrix of the current configuration, i.e. the matrix \(J\,F^{-1}\,F^{-T}\) of the reference configuration, where \(J=\det\left(F\right)\), which is also \(J\,C^{-1}\), \(C^{-1}\) being the inverse of the right Cauchy-Green tensor
Parameters
[in]Fdeformation gradient
Note
This operation is useful when computing the thermal conductivity matrix in the reference frame
In space dimensions one and two, the returned matrix is the in plane block of the result obtained in the three dimensional case, where the out of plane stretch, given by the third component of the deformation gradient, is taken into account. This block cannot be deduced from the in plane components of the deformation gradient alone: in space dimension two, the missing out of plane component of the three dimensional result is \(\det\left(F\right)/F_{33}^{2}\).
In space dimension one, only the three diagonal components of the deformation gradient are available and the returned matrix is \(F_{22}\,F_{33}/F_{11}\).

◆ computePushForwardDerivative() [1/3]

template<T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires (getSpaceDimension<StensorType>() == getSpaceDimension<T2toST2Type>() && getSpaceDimension<TensorType>() == getSpaceDimension<T2toST2Type>() && tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond)
TFEL_HOST_DEVICE constexpr auto tfel::math::computePushForwardDerivative ( const T2toST2Type & K,
const StensorType & S,
const TensorType & F )
constexprnoexcept
Returns
the derivative of the push-forward of a symmetric second order tensor with respect to the deformation gradient knowing the value of this derivative in the initial configuration.

This function is typically used to compute the derivative of the Kirchhoff stress tensor knowing the derivative of the second Piola-Kirchhoff stress.

Parameters
[in]derivative of the orginal tensor
[in]orginal tensor (second Piola-Kirchhoff stress)
[in]deformation gradient

◆ computePushForwardDerivative() [2/3]

template<ST2toST2Concept ST2toST2ResultType, TensorConcept TensorType>
requires (tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond)
TFEL_HOST_DEVICE constexpr void tfel::math::computePushForwardDerivative ( ST2toST2ResultType & r,
const TensorType & F )
constexprnoexcept

compute de derivative of the push-forward of a symmetric second order tensor with respect to the deformation gradient, i.e. it computes the derivative of F . S . transpose(F) with respect to S assuming that F is constant

Parameters
[out]rderivative of the push-forward symmetric tensor
[in]Fdeformation gradient

◆ computePushForwardDerivative() [3/3]

template<T2toST2Concept T2toST2ResultType, T2toST2Concept T2toST2Type, StensorConcept StensorType, TensorConcept TensorType>
requires (tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond&& isAssignableTo< typename ComputeBinaryResult<numeric_type<T2toST2Type>, numeric_type<StensorType>, OpPlus>::Result, numeric_type<T2toST2ResultType>>())
TFEL_HOST_DEVICE constexpr void tfel::math::computePushForwardDerivative ( T2toST2ResultType & dT_dF,
const T2toST2Type & dS_dF,
const StensorType & S,
const TensorType & F )
constexprnoexcept

compute de derivative of the push-forward of a symmetric second order tensor with respect to the deformation gradient knowing the value of this derivative in the initial configuration.

This function is typically used to compute the derivative of the Kirchhoff stress tensor knowing the derivative of the second Piola-Kirchhoff stress.

Parameters
[out]derivative of the push-forward symmetric tensor
[in]derivative of the orginal tensor
[in]orginal tensor (second Piola-Kirchhoff stress)
[in]deformation gradient

◆ computePushForwardDerivativeWithRespectToDeformationGradient()

template<T2toST2Concept T2toST2ResultType, StensorConcept StensorType, TensorConcept TensorType>
requires (tfel::typetraits::IsFundamentalNumericType< numeric_type<TensorType>>::cond&& isAssignableTo<numeric_type<StensorType>, numeric_type<T2toST2ResultType>>())
TFEL_HOST_DEVICE constexpr void tfel::math::computePushForwardDerivativeWithRespectToDeformationGradient ( T2toST2ResultType & dTdF,
const StensorType & S,
const TensorType & F )
constexprnoexcept

compute de derivative of the push-forward of a symmetric second order tensor with respect to the deformation gradient, i.e. it computes the derivative of F . S . transpose(F) with respect to F assuming that S is constant

Parameters
[out]derivative of the push-forward symmetric tensor
[in]orginal tensor
[in]deformation gradient

◆ computeRateOfDeformationDerivative()

TFEL_HOST_DEVICE constexpr auto tfel::math::computeRateOfDeformationDerivative ( const TensorConcept auto & F)
constexprnoexcept
Returns
compute the "derivative" of the rate of deformation \delta D = dD_dF:\delta F with \delta D = ((delta F).F^{-1}+F^{-T}.(delta F)^{T})/2
Parameters
[in]F: deformation gradient

◆ computeRightCauchyGreenTensor()

TFEL_HOST_DEVICE constexpr auto tfel::math::computeRightCauchyGreenTensor ( const TensorConcept auto & t)
constexprnoexcept
Returns
the right Cauchy-Green tensor
Parameters
[in]ttensor

◆ computeSpinRateDerivative()

TFEL_HOST_DEVICE constexpr auto tfel::math::computeSpinRateDerivative ( const TensorConcept auto & F)
constexprnoexcept
Returns
compute the derivative of the spin rate
Parameters
[in]Fdeformation gradient

◆ computeStensorDecompositionInPositiveAndNegativeParts() [1/3]

template<ST2toST2Concept DPPType, ST2toST2Concept DNPType, StensorConcept PPType, StensorConcept NPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<DNPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<NPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 3u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<numeric_type<StensorType>, numeric_type<NPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DNPType>>())
void tfel::math::computeStensorDecompositionInPositiveAndNegativeParts ( DPPType & dpp,
DNPType & dnp,
PPType & pp,
NPType & np,
const StensorType & s,
const numeric_type< StensorType > eps )

compute the decomposition of a symmetric tensor in a positive and negative parts and their derivatives.

Template Parameters
DPPType: type in which derivative of the positive part is stored
DNPType: type in which derivative of the negative part is stored
PPType: type of positive part of the symmetric tensor
NPType: type of negative part of the symmetric tensor
StensorType: type of the symmetric tensor
Parameters
[out]dpp: derivative of the positive part of the symmetric tensor
[out]dnp: derivative of the negative part of the symmetric tensor
[out]pp: positive part of the symmetric tensor
[out]np: positive part of the symmetric tensor
[in]s: symmetric tensor
[in]eps: numerical precision used to decipher if two eigenvalues are equal
Precondition
DPPType must implement the ST2toST2Concept
DNPType must implement the ST2toST2Concept
PPType must implement the StensorConcept
NPType must implement the StensorConcept
StensorType must implement the StensorConcept

◆ computeStensorDecompositionInPositiveAndNegativeParts() [2/3]

template<ST2toST2Concept DPPType, ST2toST2Concept DNPType, StensorConcept PPType, StensorConcept NPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<DNPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<NPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 2u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<numeric_type<StensorType>, numeric_type<NPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DNPType>>())
void tfel::math::computeStensorDecompositionInPositiveAndNegativeParts ( DPPType & dpp,
DNPType & dnp,
PPType & pp,
NPType & np,
const StensorType & s,
const numeric_type< StensorType > eps )

compute the decomposition of a symmetric tensor in a positive and negative parts and their derivatives.

Template Parameters
DPPType: type in which derivative of the positive part is stored
DNPType: type in which derivative of the negative part is stored
PPType: type of positive part of the symmetric tensor
NPType: type of negative part of the symmetric tensor
StensorType: type of the symmetric tensor
Parameters
[out]dpp: derivative of the positive part of the symmetric tensor
[out]dnp: derivative of the negative part of the symmetric tensor
[out]pp: positive part of the symmetric tensor
[out]np: positive part of the symmetric tensor
[in]s: symmetric tensor
[in]eps: numerical precision used to decipher if two eigenvalues are equal
Precondition
DPPType must implement the ST2toST2Concept
DNPType must implement the ST2toST2Concept
PPType must implement the StensorConcept
NPType must implement the StensorConcept
StensorType must implement the StensorConcept

◆ computeStensorDecompositionInPositiveAndNegativeParts() [3/3]

template<ST2toST2Concept DPPType, ST2toST2Concept DNPType, StensorConcept PPType, StensorConcept NPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<DNPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<NPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 1u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<numeric_type<StensorType>, numeric_type<NPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DNPType>>())
void tfel::math::computeStensorDecompositionInPositiveAndNegativeParts ( DPPType & dpp,
DNPType & dnp,
PPType & pp,
NPType & np,
const StensorType & s,
const numeric_type< StensorType > eps )

compute the decomposition of a symmetric tensor in a positive and negative parts and their derivatives.

Template Parameters
DPPType: type in which derivative of the positive part is stored
DNPType: type in which derivative of the negative part is stored
PPType: type of positive part of the symmetric tensor
NPType: type of negative part of the symmetric tensor
StensorType: type of the symmetric tensor
Parameters
[out]dpp: derivative of the positive part of the symmetric tensor
[out]dnp: derivative of the negative part of the symmetric tensor
[out]pp: positive part of the symmetric tensor
[out]np: positive part of the symmetric tensor
[in]s: symmetric tensor
[in]eps: numerical precision used to decipher if two eigenvalues are equal
Precondition
DPPType must implement the ST2toST2Concept
DNPType must implement the ST2toST2Concept
PPType must implement the StensorConcept
NPType must implement the StensorConcept
StensorType must implement the StensorConcept

◆ computeStensorPositivePartAndDerivative() [1/3]

template<ST2toST2Concept DPPType, StensorConcept PPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 3u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>())
void tfel::math::computeStensorPositivePartAndDerivative ( DPPType & dpp,
PPType & pp,
const StensorType & s,
const numeric_type< StensorType > eps )

compute the decomposition of a symmetric tensor in its positive part and the derivative of this positive part.

Template Parameters
DPPType: type in which derivative of the positive part is stored
PPType: type of positive part of the symmetric tensor
StensorType: type of the symmetric tensor
Parameters
[out]dpp: derivative of the positive part of the symmetric tensor
[out]pp: positive part of the symmetric tensor
[in]s: symmetric tensor
[in]eps: numerical precision used to decipher if two eigenvalues are equal
Precondition
DPPType must implement the ST2toST2Concept
PPType must implement the StensorConcept
StensorType must implement the StensorConcept

◆ computeStensorPositivePartAndDerivative() [2/3]

template<ST2toST2Concept DPPType, StensorConcept PPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 2u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>())
void tfel::math::computeStensorPositivePartAndDerivative ( DPPType & dpp,
PPType & pp,
const StensorType & s,
const numeric_type< StensorType > eps )

compute the decomposition of a symmetric tensor in its positive part and the derivative of this positive part.

Template Parameters
DPPType: type in which derivative of the positive part is stored
PPType: type of positive part of the symmetric tensor
StensorType: type of the symmetric tensor
Parameters
[out]dpp: derivative of the positive part of the symmetric tensor
[out]pp: positive part of the symmetric tensor
[in]s: symmetric tensor
[in]eps: numerical precision used to decipher if two eigenvalues are equal
Precondition
DPPType must implement the ST2toST2Concept
PPType must implement the StensorConcept
StensorType must implement the StensorConcept

◆ computeStensorPositivePartAndDerivative() [3/3]

template<ST2toST2Concept DPPType, StensorConcept PPType, StensorConcept StensorType>
requires ( getSpaceDimension<DPPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<PPType>() == getSpaceDimension<StensorType>() && getSpaceDimension<StensorType>() == 1u && isAssignableTo<numeric_type<StensorType>, numeric_type<PPType>>() && isAssignableTo<base_type<numeric_type<StensorType>>, numeric_type<DPPType>>())
void tfel::math::computeStensorPositivePartAndDerivative ( DPPType & dpp,
PPType & pp,
const StensorType & s,
const numeric_type< StensorType > eps )

compute the decomposition of a symmetric tensor in its positive part and the derivative of this positive part.

Template Parameters
DPPType: type in which derivative of the positive part is stored
PPType: type of positive part of the symmetric tensor
StensorType: type of the symmetric tensor
Parameters
[out]dpp: derivative of the positive part of the symmetric tensor
[out]pp: positive part of the symmetric tensor
[in]s: symmetric tensor
[in]eps: numerical precision used to decipher if two eigenvalues are equal
Precondition
DPPType must implement the ST2toST2Concept
PPType must implement the StensorConcept
StensorType must implement the StensorConcept

◆ computeVelocityGradientDerivative()

TFEL_HOST_DEVICE constexpr auto tfel::math::computeVelocityGradientDerivative ( const TensorConcept auto & F)
constexprnoexcept
Returns
compute the derivative of the velocity gradient
Parameters
[in]Fdeformation gradient

◆ convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative() [1/2]

template<StressT2toST2Concept CauchyStressDerivativeType, NoUnitTensorConcept DeformationGradientType, StressStensorConcept CauchyStressType>
requires (checkThatAllSpaceDimensionsAreEqual<CauchyStressDerivativeType, DeformationGradientType, CauchyStressType>())
TFEL_HOST_DEVICE constexpr t2tot2< space_dimension< CauchyStressDerivativeType >, numeric_type< CauchyStressDerivativeType > > tfel::math::convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative ( const CauchyStressDerivativeType & ds,
const DeformationGradientType & F,
const CauchyStressType & s )
nodiscardconstexprnoexcept

convert the derivative of the Cauchy stress with respect to the deformation gradient to the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.

Parameters
[in]dsderivative of the Cauchy stress with respect to the deformation gradient
[in]Fdeformation gradient
[in]sCauchy stress
Returns
the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.

◆ convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative() [2/2]

template<StressT2toT2Concept PK1StressDerivativeType, StressT2toST2Concept CauchyStressDerivativeType, NoUnitTensorConcept DeformationGradientType, StressStensorConcept CauchyStressType>
requires (checkThatAllSpaceDimensionsAreEqual<PK1StressDerivativeType, CauchyStressDerivativeType, DeformationGradientType, CauchyStressType>())
TFEL_HOST_DEVICE constexpr void tfel::math::convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative ( PK1StressDerivativeType & dP,
const CauchyStressDerivativeType & ds,
const DeformationGradientType & F,
const CauchyStressType & s )
constexprnoexcept

convert the derivative of the Cauchy stress with respect to the deformation gradient to the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.

Parameters
[out]dPderivative of the first Piola-Kirchhoff stress with respect to the deformation gradient
[in]dsderivative of the Cauchy stress with respect to the deformation gradient
[in]Fdeformation gradient
[in]sCauchy stress

◆ convertCauchyStressDerivativeToFirstPiolaKirchoffStressDerivative()

template<typename... ArgumentsTypes>
TFEL_HOST_DEVICE constexpr auto tfel::math::convertCauchyStressDerivativeToFirstPiolaKirchoffStressDerivative ( ArgumentsTypes &&... args) ->decltype(convertCauchyStressDerivativeToFirstPiolaKirchhoffStressDerivative(std::forward< ArgumentsTypes >(args)...))
constexprnoexcept

◆ convertCauchyStressToFirstPiolaKirchhoffStress()

TFEL_HOST_DEVICE constexpr auto tfel::math::convertCauchyStressToFirstPiolaKirchhoffStress ( const StensorConcept auto & s,
const TensorConcept auto & F )
constexprnoexcept

convert the Cauchy stress to the first Piola-Kirchhoff stress.

Template Parameters
StensorTypetype of the Cauchy stress
TensorTypetype of the deformation gradient
Parameters
[in]sCauchy stress
[in]Fdeformation gradient
Returns
the first Piola-Kirchhoff stress

◆ convertCauchyStressToSecondPiolaKirchhoffStress()

TFEL_HOST_DEVICE constexpr auto tfel::math::convertCauchyStressToSecondPiolaKirchhoffStress ( const StensorConcept auto & s,
const TensorConcept auto & F )
constexprnoexcept

convert the Cauchy stress to the second Piola-Kirchhoff stress

Parameters
[in]sCauchy stress
[in]Fdeformation gradient

◆ convertCorotationnalCauchyStressToSecondPiolaKirchhoffStress() [1/2]

template<StensorConcept T, StensorConcept T2>
requires ( (getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType<numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto tfel::math::convertCorotationnalCauchyStressToSecondPiolaKirchhoffStress ( const T & s,
const T2 & U )
constexprnoexcept

convert the corotationnal cauchy stress to the second Piola-Kirchhoff stress

\[\underline{S} = J\,\underline{U}^{-1}\,.\,\underline{\sigma}\,.\,\underline{U}^{-1} \]

Parameters
[in]scorotationnal cauchy stress
[in]Ustretch tensor
Returns
the second Piola-Kirchhoff stress

◆ convertCorotationnalCauchyStressToSecondPiolaKirchhoffStress() [2/2]

template<StensorConcept T, StensorConcept T2>
requires ((getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType< numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto tfel::math::convertCorotationnalCauchyStressToSecondPiolaKirchhoffStress ( const T & s,
const T2 & U )
constexprnoexcept

convert the corotationnal cauchy stress to the second Piola-Kirchhoff stress

\[\underline{S} = J\,\underline{U}^{-1}\,.\,\underline{\sigma}\,.\,\underline{U}^{-1} \]

Parameters
[in]scorotationnal cauchy stress
[in]Ustretch tensor
Returns
the second Piola-Kirchhoff stress

◆ convertFirstPiolaKirchhoffStressToCauchyStress()

TFEL_HOST_DEVICE constexpr auto tfel::math::convertFirstPiolaKirchhoffStressToCauchyStress ( const TensorConcept auto & P,
const TensorConcept auto & F )
constexprnoexcept

convert the first Piola-Kirchhoff stress to the Cauchy stress

Template Parameters
TensorTypetype of the first Piola-Kirchhoff stress
TensorType2type of the deformation gradient
Parameters
[in]PCauchy stress
[in]Fdeformation gradient
Returns
the Cauchy stress

◆ convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative() [1/2]

template<StressST2toST2Concept PK2StressDerivativeType, NoUnitTensorConcept DeformationGradientType, StressStensorConcept CauchyStressType>
requires (checkThatAllSpaceDimensionsAreEqual<PK2StressDerivativeType, DeformationGradientType, CauchyStressType>())
TFEL_HOST_DEVICE constexpr t2tot2< space_dimension< PK2StressDerivativeType >, numeric_type< PK2StressDerivativeType > > tfel::math::convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative ( const PK2StressDerivativeType & dS,
const DeformationGradientType & F,
const CauchyStressType & s )
nodiscardconstexprnoexcept

convert the derivative of the second Piola-Kirchhoff stress with respect to the Green-Lagrange strain to the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.

Parameters
[in]dSderivative of the second Piola-Kirchhoff stress with respect to the Green-Lagrange strain
[in]Fdeformation gradient
[in]sCauchy stress
Returns
the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.

◆ convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative() [2/2]

template<StressT2toT2Concept PK1StressDerivativeType, StressST2toST2Concept PK2StressDerivativeType, NoUnitTensorConcept DeformationGradientType, StressStensorConcept CauchyStressType>
requires (checkThatAllSpaceDimensionsAreEqual<PK1StressDerivativeType, PK2StressDerivativeType, DeformationGradientType, CauchyStressType>())
TFEL_HOST_DEVICE constexpr void tfel::math::convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative ( PK1StressDerivativeType & dP,
const PK2StressDerivativeType & dS,
const DeformationGradientType & F,
const CauchyStressType & s )
constexprnoexcept

convert the derivative of the second Piola-Kirchhoff stress with respect to the Green-Lagrange strain to the derivative of the first Piola-Kirchhoff stress with respect to the deformation gradient.

Parameters
[out]dPderivative of the first Piola-Kirchhoff stress with respect to the deformation gradient
[in]dSderivative of the second Piola-Kirchhoff stress with respect to the Green-Lagrange strain
[in]Fdeformation gradient
[in]sCauchy stress

◆ convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchoffStressDerivative()

template<typename... ArgumentsTypes>
TFEL_HOST_DEVICE constexpr auto tfel::math::convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchoffStressDerivative ( ArgumentsTypes &&... args) ->decltype(convertSecondPiolaKirchhoffStressDerivativeToFirstPiolaKirchhoffStressDerivative(std::forward< ArgumentsTypes >(args)...))
constexprnoexcept

◆ convertSecondPiolaKirchhoffStressToCauchyStress()

TFEL_HOST_DEVICE constexpr auto tfel::math::convertSecondPiolaKirchhoffStressToCauchyStress ( const StensorConcept auto & p,
const TensorConcept auto & F )
constexprnoexcept

convert the second Piola-Kirchhoff stress to the Cauchy stress

Parameters
[in]pCauchy stress
[in]Fdeformation gradient

◆ convertSecondPiolaKirchhoffStressToCorotationnalCauchyStress() [1/2]

template<StensorConcept T, StensorConcept T2>
requires ( (getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType<numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto tfel::math::convertSecondPiolaKirchhoffStressToCorotationnalCauchyStress ( const T & S,
const T2 & U )
constexprnoexcept

convert the second Piola-Kirchhoff stress to the corotationnal cauchy stress:

\[\underline{S} = J\,\underline{U}^{-1}\,.\,\underline{\sigma}\,.\,\underline{U}^{-1} \]

Parameters
[in]Sthe second Piola-Kirchhoff stress
[in]Ustretch tensor
Returns
the corotationnal cauchy stress

◆ convertSecondPiolaKirchhoffStressToCorotationnalCauchyStress() [2/2]

template<StensorConcept T, StensorConcept T2>
requires ((getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType< numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto tfel::math::convertSecondPiolaKirchhoffStressToCorotationnalCauchyStress ( const T & S,
const T2 & U )
constexprnoexcept

convert the second Piola-Kirchhoff stress to the corotationnal cauchy stress:

\[\underline{S} = J\,\underline{U}^{-1}\,.\,\underline{\sigma}\,.\,\underline{U}^{-1} \]

Parameters
[in]Sthe second Piola-Kirchhoff stress
[in]Ustretch tensor
Returns
the corotationnal cauchy stress

◆ convertSpatialModuliToKirchhoffJaumanRateModuli()

template<ST2toST2Concept ST2toST2Type, StensorConcept StensorType>
requires ((getSpaceDimension<ST2toST2Type>() == getSpaceDimension<StensorType>()) && (std::is_same_v<numeric_type<ST2toST2Type>, numeric_type<StensorType>>))
TFEL_HOST_DEVICE constexpr auto tfel::math::convertSpatialModuliToKirchhoffJaumanRateModuli ( const ST2toST2Type & C_s,
const StensorType & tau )
constexprnoexcept

convert the spatial moduli in the moduli associated with Jauman rate of the Kirchhoff stress

Parameters
[in]C_sspatial moduli
[in]tauKirchhoff stress
Returns
the moduli associated with Jauman rate of the Kirchhoff stress

◆ convertToT2toST2()

TFEL_HOST_DEVICE constexpr auto tfel::math::convertToT2toST2 ( const T2toT2Concept auto & t)
constexprnoexcept

convert a t2tot2 tensor to a t2tost2

Parameters
[in]tfourth order tensor to be converted

◆ convertToTangentModuli()

template<T2toST2Concept T2toST2Type, TensorConcept TensorType>
requires (getSpaceDimension<T2toST2Type>() == getSpaceDimension<TensorType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::convertToTangentModuli ( const T2toST2Type & K,
const TensorType & F )
constexprnoexcept

compute the moduli \(C\) such that \(C\,\colon\,D = K\,\colon\,\left(D\,\cdot\,F\right)\) for every symmetric tensor \(D\).

Parameters
[in]Kderivative of the Kirchhoff stress with respect to the deformation gradient
[in]Fdeformation gradient

◆ det() [1/4]

TFEL_HOST_DEVICE constexpr auto tfel::math::det ( const ST2toST2Concept auto & s)
constexprnoexcept
Returns
the determinant of a st2tost2
Parameters
[in]sfourth order tensor

◆ det() [2/4]

TFEL_HOST_DEVICE constexpr auto tfel::math::det ( const StensorConcept auto & s)
constexprnoexcept
Returns
the determinant of a symmetric tensor

◆ det() [3/4]

TFEL_HOST_DEVICE constexpr auto tfel::math::det ( const T2toT2Concept auto & s)
constexprnoexcept
Returns
the determinant of a t2tot2
Parameters
[in]tfourth order tensor

◆ det() [4/4]

TFEL_HOST_DEVICE constexpr auto tfel::math::det ( const TensorConcept auto & t)
constexprnoexcept
Returns
the determinant of a tensor
Parameters
[in]ttensor

◆ deviator()

TFEL_HOST_DEVICE constexpr auto tfel::math::deviator ( const StensorConcept auto & s)
constexprnoexcept
Returns
the deviator of a symmetric tensor

◆ eval()

template<typename ResultType, typename Operation>
TFEL_HOST_DEVICE constexpr ResultType tfel::math::eval ( const Expr< ResultType, Operation > & e)
constexpr

evaluate an expression

Returns
the computed value
Parameters
[in]eexpression

◆ executeInitialisationTaskBeforeBeginningOfCoreAlgorithm()

TFEL_HOST_DEVICE constexpr void tfel::math::executeInitialisationTaskBeforeBeginningOfCoreAlgorithm ( )
constexprprotectednoexcept

this method is called at the beginning of the solveNonLinearSystem2 method.

This method can be used to initialize some internal state, including numerical parameters.

◆ executeInitialisationTaskBeforeResolution()

TFEL_HOST_DEVICE constexpr void tfel::math::executeInitialisationTaskBeforeResolution ( )
constexprprotectednoexcept

this method is called at the beginning of the solveNonLinearSystem method.

This method can be used to initialize some internal state, including numerical parameters.

◆ exportToBaseTypeArray()

template<unsigned short N, typename T, typename OutputIterator>
requires (isScalar<T>())
TFEL_HOST_DEVICE constexpr void tfel::math::exportToBaseTypeArray ( const tvector< N, T > & v,
OutputIterator p )
constexprnoexcept

export the given vector to an array of the

◆ find_perpendicular_vector()

template<typename T>
TFEL_HOST_DEVICE constexpr void tfel::math::find_perpendicular_vector ( tvector< 3u, T > & y,
const tvector< 3u, T > & x )
constexprnoexcept

find a vector perpendicular to the second one

◆ geometricDiscretization()

template<typename T>
void tfel::math::geometricDiscretization ( T & v,
const typename T::value_type xb,
const typename T::value_type xe,
const typename T::value_type db,
const typename T::value_type de,
const typename T::size_type n )

discretize a segment into a fixed number of elements trying to satisfy as much as possible given discretization densities at the beginning and the end of the segment. Elements size grows according to a geometric progression.

Parameters
T: a "stl vector like" container
xb: starting point
xe: last point
db: density of the discretization at the starting point
db: density of the discretization at the last point
n: number of elements

◆ get() [1/4]

template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr const std::tuple_element_t< i, fsarray< N, ValueType > > & tfel::math::get ( const fsarray< N, ValueType > & v)
constexprnoexcept

partial specialisation of std::get for tfel::math::fsarray

Template Parameters
iindex of the element to be retrieved
Nsize of the tiny vector
ValueTypetype hold by the tiny vector

◆ get() [2/4]

template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr const std::tuple_element_t< i, tvector< N, ValueType > > & tfel::math::get ( const tvector< N, ValueType > & v)
constexprnoexcept

partial specialisation of std::get for tfel::math::tvector

Template Parameters
iindex of the element to be retrieved
Nsize of the tiny vector
ValueTypetype hold by the tiny vector

◆ get() [3/4]

template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr std::tuple_element_t< i, fsarray< N, ValueType > > & tfel::math::get ( fsarray< N, ValueType > & v)
constexprnoexcept

partial specialisation of std::get for tfel::math::fsarray

Template Parameters
iindex of the element to be retrieved
Nsize of the tiny vector
ValueTypetype hold by the tiny vector

◆ get() [4/4]

template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr std::tuple_element_t< i, tvector< N, ValueType > > & tfel::math::get ( tvector< N, ValueType > & v)
constexprnoexcept

partial specialisation of std::get for tfel::math::tvector

Template Parameters
iindex of the element to be retrieved
Nsize of the tiny vector
ValueTypetype hold by the tiny vector

◆ getArrayPolicyMinimalDataSize()

template<typename ArrayPolicyType>
auto tfel::math::getArrayPolicyMinimalDataSize ( )
constexpr
Returns
the minimal number of values required to stored the given array policy
Template Parameters
ArrayPolicyTypethe array policy
Precondition
the array policy must have fixed sizes.

◆ getArrayPolicySize()

template<typename ArrayPolicyType>
auto tfel::math::getArrayPolicySize ( )
constexpr
Returns
the logical size of the given array policy, i.e. the number of values that can be accessed by the given policy.
Template Parameters
ArrayPolicyTypethe array policy
Precondition
the array policy must have fixed sizes.

◆ getComponent() [1/2]

TFEL_HOST_DEVICE constexpr auto tfel::math::getComponent ( const ST2toST2Concept auto & A,
unsigned short i,
unsigned short j,
unsigned short k,
unsigned short l )
constexpr

This function returns the component (i,j,k,l) of a st2tost2.

Returns
the value

\[A_{ijkl}\]

Parameters
[in]Ast2tost2
[in]i,j,k,lunsigned short

◆ getComponent() [2/2]

TFEL_HOST_DEVICE constexpr auto tfel::math::getComponent ( const StensorConcept auto & ,
unsigned short ,
unsigned short  )
nodiscardconstexpr

This function returns the component (i,j) of a stensor, using the function VoigtIndex.

Returns
the value

\[A_{ij}\]

Parameters
[in]Astensor
[in]i,junsigned short

◆ getSpaceDimension()

template<MathObjectConcept MathObjectType>
TFEL_HOST_DEVICE constexpr unsigned short tfel::math::getSpaceDimension ( )
constexpr

an helper function to retrieve the space dimension associated with a math object.

Template Parameters
MathObjectTypemath object
Deprecated
prefer using the inline variable space_dimension

◆ getStensorSize()

TFELMATH_VISIBILITY_EXPORT unsigned short tfel::math::getStensorSize ( const unsigned short )

return the size of a symmetric tensor for the given dimension

Parameters
[in]dspace dimension

◆ hasArrayPolicyFixedSizes() [1/2]

template<typename ArrayPolicyType>
TFEL_HOST_DEVICE constexpr bool tfel::math::hasArrayPolicyFixedSizes ( )
constexpr
Returns
if the given array policy has fixed sizes.
Template Parameters
ArrayPolicyTypethe array policy

◆ hasArrayPolicyFixedSizes() [2/2]

template<typename ArrayPolicyType>
bool tfel::math::hasArrayPolicyFixedSizes ( )
constexpr
Returns
if the given array policy has fixed sizes.
Template Parameters
ArrayPolicyTypethe array policy

◆ hasConceptTag() [1/2]

template<typename T>
TFEL_HOST_DEVICE constexpr bool tfel::math::hasConceptTag ( )
constexpr

metafunction returning of the given type defines a type called ConceptTag.

Parameters
[in]Ttype checked

◆ hasConceptTag() [2/2]

template<typename T>
bool tfel::math::hasConceptTag ( )
constexpr

metafunction returning of the given type defines a type called ConceptTag.

Parameters
[in]Ttype checked

◆ hasIndexingPolicy() [1/2]

template<typename T>
TFEL_HOST_DEVICE constexpr bool tfel::math::hasIndexingPolicy ( )
constexpr

a simple metafunction which looks if the given type provides an internal type called indexing_policy

Parameters
[in]Ttype checked

◆ hasIndexingPolicy() [2/2]

template<typename T>
bool tfel::math::hasIndexingPolicy ( )
constexpr

a simple metafunction which looks if the given type provides an internal type called indexing_policy

Parameters
[in]Ttype checked

◆ haveIndexingPoliciesTheSameMemoryLayout() [1/2]

template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool tfel::math::haveIndexingPoliciesTheSameMemoryLayout ( )
constexpr
Returns
if two indexing policies have the same memory layout.
Template Parameters
IndexingPolicy1first indexing policy
IndexingPolicy2second indexing policy
Note
this function is a simple wrapper around IndexingPoliciesCompatiblityCheck::haveTheSameMemoryLayout.

◆ haveIndexingPoliciesTheSameMemoryLayout() [2/2]

template<typename IndexingPolicy1, typename IndexingPolicy2>
bool tfel::math::haveIndexingPoliciesTheSameMemoryLayout ( )
constexpr
Returns
if two indexing policies have the same memory layout.
Template Parameters
IndexingPolicy1first indexing policy
IndexingPolicy2second indexing policy
Note
this function is a simple wrapper around IndexingPoliciesCompatiblityCheck::haveTheSameMemoryLayout.

◆ implementsArrayConcept()

template<typename ArrayType>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsArrayConcept ( )
constexpr

an helper function which returns if the given type implements the ArrayConcept.

Template Parameters
ArrayTypetype tested

◆ implementsMatrixConcept()

template<typename MatrixType>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsMatrixConcept ( )
constexpr

an helper function which returns if the given type implements the MatrixConcept.

Template Parameters
MatrixTypetype tested
Note
function given for backward compatibility with versions prior to 5.0

◆ implementsST2toST2Concept()

template<typename ST2toST2Type>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsST2toST2Concept ( )
constexpr

an helper function which returns if the given type implements the ST2toST2Concept.

Template Parameters
ST2toST2Typetype tested
Note
function given for backward compatibility with versions prior to 5.0

◆ implementsST2toT2Concept()

template<typename ST2toT2Type>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsST2toT2Concept ( )
constexpr

an helper function which returns if the given type implements the ST2toT2Concept.

Template Parameters
ST2toT2Typetype tested
Note
function given for backward compatibility with versions prior to 5.0

◆ implementsStensorConcept()

template<typename StensorType>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsStensorConcept ( )
constexpr

an helper function which returns if the given type implements the StensorConcept.

Template Parameters
StensorTypetype tested
Note
function given for backward compatibility with versions prior to 5.0

◆ implementsT2toST2Concept()

template<T2toST2Concept T2toST2Type>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsT2toST2Concept ( )
constexpr

an helper function which returns if the given type implements the T2toST2Concept.

Template Parameters
T2toST2Typetype tested

◆ implementsT2toT2Concept()

template<T2toT2Concept T2toT2Type>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsT2toT2Concept ( )
constexpr

an helper function which returns if the given type implements the T2toT2Concept.

Template Parameters
T2toT2Typetype tested
Note
function given for backward compatibility with versions prior to 5.0

◆ implementsTensorConcept()

template<typename TensorType>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsTensorConcept ( )
nodiscardconstexpr

an helper function which returns if the given type implements the TensorConcept.

Template Parameters
TensorTypetype tested
Note
function given for backward compatibility with versions prior to 5.0

◆ implementsVectorConcept()

template<typename VectorType>
TFEL_HOST_DEVICE constexpr bool tfel::math::implementsVectorConcept ( )
constexpr

an helper function which returns if the given type implements the VectorConcept.

Template Parameters
VectorTypetype tested
Note
function given for backward compatibility with versions prior to 5.0

◆ init_floating_point_exceptions()

void tfel::math::init_floating_point_exceptions ( )
inline

this function enables C99 floating point rounding and exception handling:

  • FE_DIVBYZERO: the DivideByZero exception occurs when an operation on finite numbers produces infinity as exact answer.
  • FE_UNDERFLOW: the Overflow exception occurs when a result has to be represented as a floating point number, but has (much) larger absolute value than the largest (finite) floating point number that is representable.
  • FE_OVERFLOW: the Underflow exception occurs when a result has to be represented as a floating point number, but has smaller absolute value than the smallest positive normalized floating point number (and would lose much accuracy when represented as a denormalized number).
  • FE_INEXACT: the Inexact exception occurs when the rounded result of an operation is not equal to the infinite precision result. It may occur whenever Overflow or Underflow occurs.

◆ invert() [1/3]

TFEL_HOST constexpr auto tfel::math::invert ( const ST2toST2Concept auto & s)
constexpr
Returns
the invert of a st2tost2
Parameters
[in]s: st2tost2 to be inverted

◆ invert() [2/3]

TFEL_HOST_DEVICE constexpr auto tfel::math::invert ( const StensorConcept auto & s)
constexprnoexcept
Returns
the inverse of a symmetric tensor
Parameters
[in]ssymmetric tensor

◆ invert() [3/3]

TFEL_HOST_DEVICE constexpr auto tfel::math::invert ( const TensorConcept auto & t)
constexprnoexcept
Returns
the invert of a tensor
Parameters
[in]t: tensor to be inverted

◆ isAssignableTo()

template<typename A, typename B>
TFEL_HOST_DEVICE constexpr bool tfel::math::isAssignableTo ( )
constexpr

an helper function around isAssignableTo

Template Parameters
A,firsttype
B,secondtype

◆ isInvalid()

template<typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::isInvalid ( )
constexpr

a simple wrapper around tfel::typetraits::IsInvalid

Template Parameters
Ttested type

◆ isQuantity()

template<typename T>
TFEL_HOST_DEVICE constexpr bool tfel::math::isQuantity ( )
constexpr

a function testing if a type is a quantity

Note
this function is kept for backward compatility with C++-17 when concepts were not yet available

◆ isScalar()

template<typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::isScalar ( )
constexpr

a simple wrapper around tfel::typetraits::IsScalar

Template Parameters
Ttested type

◆ logarithm()

template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto tfel::math::logarithm ( const StensorType & s,
const bool b = false )

compute the logarithm of a symmetric tensor

Parameters
s: tensor
b: if true, refinement of eigen values is performed

◆ map() [1/12]

template<MappableImmutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ((std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes))
TFEL_HOST_DEVICE constexpr ScatteredView< MappedType, IndexingPolicyType > tfel::math::map ( const std::array< ViewConstDataPointerType< std::remove_cv_t< MappedType > >, indexing_policy_size< IndexingPolicyType > > & ptrs)
constexpr

return an immutable scattered view from a list of pointers

Template Parameters
MappedTypeobject mapped
Parameters
[in]ppointers

◆ map() [2/12]

template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N>
requires ((!isScalar<MappedType>()) && (IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto tfel::math::map ( const tvector< N, base_type< numeric_type< MappedType > > > & v)
constexprnoexcept

create a constant view of a math object from a tiny vector

Template Parameters
MappedType: type of mapped object
IndexingPolicyTypeindex policy type used by the generated view
Nsize of the tiny vector
Ttype hold by the tiny vector

◆ map() [3/12]

template<typename MappedType, unsigned short offset, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N, typename real>
requires ((IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto tfel::math::map ( const tvector< N, real > & v)
constexprnoexcept

create a constant view of a math object from a tiny vector

Template Parameters
MappedType: type of mapped object
offsetoffset in the tiny vector
IndexingPolicyTypeindex policy type used by the generated view
Nsize of the tiny vector
Ttype hold by the tiny vector

◆ map() [4/12]

template<unsigned short M, typename MappedType, unsigned short offset = 0u, unsigned short stride = getViewsArrayMinimalStride<MappedType>(), unsigned short N>
TFEL_HOST_DEVICE constexpr auto tfel::math::map ( const tvector< N, ViewsArrayStorageType< MappedType > > & v)
constexpr

create a const view on an array of fixed sized math objects from a tiny vector

Template Parameters
Mnumber of objects mapped
MappedType: type of mapped object
offsetoffset from the start of the tiny vector
Nsize of the tiny vector

◆ map() [5/12]

template<typename MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ( (!std::is_const_v<MappedType>)&&(!isScalar<MappedType>()) && (std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr View< MappedType, IndexingPolicyType > tfel::math::map ( const ViewDataPointerType< MappedType > p)
constexpr

return a view from a memory area

Template Parameters
MappedTypeobject mapped
Parameters
[in]ppointer to the mapped memory area

◆ map() [6/12]

template<typename F, typename T, unsigned short N>
TFEL_HOST_DEVICE constexpr tvector< N, std::invoke_result_t< F, T > > tfel::math::map ( F f,
const tvector< N, T > & x )
constexpr

create a new tvector by applying a functor

Parameters
[in]ffunctor
[in]xinital value

◆ map() [7/12]

template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ((!std::is_const_v<MappedType>)&&( std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr ScatteredView< MappedType, IndexingPolicyType > tfel::math::map ( std::array< ViewDataPointerType< MappedType >, indexing_policy_size< IndexingPolicyType > > & ptrs)
constexpr

return a scattered view from a list of pointers

Template Parameters
MappedTypeobject mapped
Parameters
[in]ppointers

◆ map() [8/12]

template<MappableImmutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ((std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes))
TFEL_HOST_DEVICE constexpr ScatteredView< MappedType, IndexingPolicyType > tfel::math::map ( std::span< const ViewConstDataPointerType< std::remove_cv_t< MappedType > >, indexing_policy_size< IndexingPolicyType > > ptrs)
constexpr

return an immutable scattered view from a list of pointers

Template Parameters
MappedTypeobject mapped
Parameters
[in]ppointers

◆ map() [9/12]

template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ((!std::is_const_v<MappedType>)&&( std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr ScatteredView< MappedType, IndexingPolicyType > tfel::math::map ( std::span< const ViewDataPointerType< MappedType >, indexing_policy_size< IndexingPolicyType > > ptrs)
constexpr

return a scattered view from a list of pointers

Template Parameters
MappedTypeobject mapped
Parameters
[in]ppointers

◆ map() [10/12]

template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N>
requires ((!isScalar<MappedType>()) && (IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto tfel::math::map ( tvector< N, base_type< numeric_type< MappedType > > > & v)
constexprnoexcept

create a view of a math object from a tiny vector

Template Parameters
MappedType: type of mapped object
IndexingPolicyTypeindex policy type used by the generated view
Nsize of the tiny vector
Ttype hold by the tiny vector

◆ map() [11/12]

template<typename MappedType, unsigned short offset, typename IndexingPolicyType = typename MappedType::indexing_policy, unsigned short N, typename real>
requires ( (!std::is_const_v<MappedType>)&&(IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename MappedType::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto tfel::math::map ( tvector< N, real > & v)
constexprnoexcept

create a view of a math object from a tiny vector

Template Parameters
MappedType: type of mapped object
offsetoffset in the tiny vector
IndexingPolicyTypeindex policy type used by the generated view
Nsize of the tiny vector
Ttype hold by the tiny vector

◆ map() [12/12]

template<unsigned short M, typename MappedType, unsigned short offset = 0u, unsigned short stride = getViewsArrayMinimalStride<MappedType>(), unsigned short N>
requires (!std::is_const_v<MappedType>)
TFEL_HOST_DEVICE constexpr auto tfel::math::map ( tvector< N, ViewsArrayStorageType< MappedType > > & v)
constexprnoexcept

create a view on an array of fixed sized math objects from a tiny vector

Template Parameters
Mnumber of objects mapped
MappedType: type of mapped object
offsetoffset from the start of the tiny vector
Nsize of the tiny vector

◆ map_derivative() [1/4]

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 > > > > & m)
constexpr

an helper function to create a derivative view from a tiny matrix

Template Parameters
Irow index.
Jcolumn index.
FunctionTypefunction type.
VariableTypevariable type.
Nnumber of rows of the matrix.
Mnumber of columns of the matrix.

◆ map_derivative() [2/4]

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 > > > > & m,
const unsigned short i,
const unsigned short j )
constexpr

an helper function to create a derivative view from a tiny matrix

Template Parameters
FunctionTypefunction type.
VariableTypevariable type.
Nnumber of rows of the matrix.
Mnumber of columns of the matrix.
Parameters
[in]Irow index.
[in]Jcolumn index.

◆ map_derivative() [3/4]

template<unsigned short I, unsigned short J, typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
derivative_view_from_tiny_matrix< M, FunctionType, VariableType > tfel::math::map_derivative ( tmatrix< N, M, base_type< numeric_type< derivative_type< FunctionType, VariableType > > > > & m)
constexpr

an helper function to create a derivative view from a tiny matrix

Template Parameters
Irow index.
Jcolumn index.
FunctionTypefunction type.
VariableTypevariable type.
Nnumber of rows of the matrix.
Mnumber of columns of the matrix.

◆ map_derivative() [4/4]

template<typename FunctionType, typename VariableType, unsigned short N, unsigned short M>
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 )
constexpr

an helper function to create a derivative view from a tiny matrix

Template Parameters
FunctionTypefunction type.
VariableTypevariable type.
Nnumber of rows of the matrix.
Mnumber of columns of the matrix.
Parameters
[in]Irow index.
[in]Jcolumn index.

◆ map_derivative_scattered() [1/2]

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)
constexpr

an helper function to create a scattered derivative view from the pointers to the components of a matrix.

Template Parameters
Irow index.
Jcolumn index.
FunctionTypefunction type.
VariableTypevariable type.
Nnumber of rows of the matrix.
Mnumber of columns of the matrix.
Parameters
[in]ppointers to the components of the matrix, ordered in row major format.
Note
the view stores a copy of the pointers to the components of the derivative.

◆ map_derivative_scattered() [2/2]

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  )
constexpr

an helper function to create a scattered derivative view from the pointers to the components of a matrix.

Template Parameters
FunctionTypefunction type.
VariableTypevariable type.
Nnumber of rows of the matrix.
Mnumber of columns of the matrix.
Parameters
[in]ppointers to the components of the matrix, ordered in row major format.
[in]Irow index.
[in]Jcolumn index.
Note
the view stores a copy of the pointers to the components of the derivative.

◆ map_derivative_strided() [1/2]

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  )
constexpr

an helper function to create a strided derivative view from a structure of arrays memory area.

Template Parameters
Irow index.
Jcolumn index.
FunctionTypefunction type.
VariableTypevariable type.
Nnumber of rows of the matrix.
Mnumber of columns of the matrix.
Parameters
[in]ppointer to the (0, 0) component of the current matrix.
[in]stridestride between two successive components.

◆ map_derivative_strided() [2/2]

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  )
constexpr

an helper function to create a strided derivative view from a structure of arrays memory area.

Template Parameters
FunctionTypefunction type.
VariableTypevariable type.
Nnumber of rows of the matrix.
Mnumber of columns of the matrix.
Parameters
[in]ppointer to the (0, 0) component of the current matrix.
[in]stridestride between two successive components.
[in]Irow index.
[in]Jcolumn index.

◆ map_strided()

template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ((!std::is_const_v<MappedType>)&&( std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr StridedView< MappedType, IndexingPolicyType > tfel::math::map_strided ( const ViewDataPointerType< MappedType > p,
const std::size_t s )
constexpr

return a strided view from a base pointer and a stride

Template Parameters
MappedTypeobject mapped
Parameters
[in]ppointer to the first component
[in]sstride between successive components

◆ matrix()

template<typename ValueType>
tfel::math::matrix ( const std::initializer_list< std::initializer_list< ValueType > > & ) ->matrix< ValueType >

class template argument deduction

Template Parameters
ValueTypenumeric type
Mnumber of columns
dsizes of the arrays, that must be all equal to M

◆ matrix_view()

template<TensorConcept TensorType>
TFEL_HOST_DEVICE constexpr auto tfel::math::matrix_view ( TensorType && t)
nodiscardconstexprnoexcept
Returns
an expression representing a matrix view from a tensor
Parameters
[in]ttensor

◆ negative_part()

template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto tfel::math::negative_part ( const StensorType & s,
const bool b = false )

compute the negative part of a symmetric tensor

Parameters
s: tensor
b: if true, refinement of eigen values is performed

◆ norm() [1/3]

TFEL_HOST_DEVICE constexpr auto tfel::math::norm ( const ST2toST2Concept auto & A)
constexprnoexcept

This function computes the norm of a st2tost2 as.

\[ ||A||=\sqrt{{}^tA::A}\]

.

\[ ||A||=\sqrt{\sum_{i,j,k,l}A_{ijkl}A_{ijkl}}\]

or also

\[ ||A||=\sqrt{\sum_{i,j} A_{ij}A_{ij}}\]

in Voigt notation.

Returns
the norm
Parameters
[in]Ast2tost2

◆ norm() [2/3]

template<VectorConcept T1>
requires ( !isInvalid<BinaryOperationResult<T1, T1, OpDotProduct>>())
TFEL_HOST_DEVICE auto tfel::math::norm ( const T1 & v)

return the euclidian norm of a tvector

Parameters
v: the vector.
Returns
const typename tfel::typetraits::RealPartType<T>::type, the result

◆ norm() [3/3]

template<ScalarConcept T>
TFEL_HOST_DEVICE auto tfel::math::norm ( const vector< T > & )
noexcept
Returns
the euclidian norm of a vector
Parameters
vthe vector.

◆ operator*() [1/2]

template<unsigned short M, unsigned short N, typename MatrixValueType, typename VectorValueType, typename Array2>
requires (Array2::indexing_policy::arity == 1)
TFEL_HOST_DEVICE constexpr auto tfel::math::operator* ( const tmatrix< M, N, MatrixValueType > & m,
const FixedSizeArrayDerivative< tvector< N, VectorValueType >, Array2 > & d )
constexprnoexcept

product of a matrix by the derivative of a vector with respect to an array. If the matrix is the derivative of a vector \(u\) with respect to a vector \(v\) and the derivative is the derivative of \(v\) with respect to an array \(a\), the result is the derivative of \(u\) with respect to \(a\) (chain rule).

Parameters
[in]mmatrix
[in]dderivative of a vector with respect to an array

◆ operator*() [2/2]

template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto tfel::math::operator* ( T1 && a,
T2 && b )->BinaryOperationHandler< decltype(a), decltype(b), OpMult >requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpMult >())&&(!((isScalar< T1 >())&&(isScalar< T2 >()))))
constexprnoexcept

multiply to mathematical object

Template Parameters
T1type of the left hand side argument
T2type of the right hand side argument
Parameters
a: left hand side argument
b: right hand side argument
Returns
an handle which allow delayed evaluation of the operation

This operator is defined if the ComputeBinaryResult<T1,T2,OpMult> metafunctions returns valid Result and Handle.

See also
ComputeBinaryResult
IsInvalidType

◆ operator+()

template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto tfel::math::operator+ ( T1 && a,
T2 && b )->BinaryOperationHandler< decltype(a), decltype(b), OpPlus >requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpPlus >())&&(!((isScalar< T1 >())&&(isScalar< T2 >()))))
constexprnoexcept

add to mathematical object

Template Parameters
T1type of the left hand side argument
T2type of the right hand side argument
Parameters
a: left hand side argument
b: right hand side argument
Returns
an handle which allow delayed evaluation of the operation

This operator is defined if the ComputeBinaryResult<T1,T2,OpPlus> metafunctions returns valid Result and Handle.

See also
ComputeBinaryResult
IsInvalidType

◆ operator-() [1/2]

template<typename T1>
TFEL_HOST_DEVICE constexpr auto tfel::math::operator- ( T1 && a) ->UnaryOperationHandler< decltype(a), OpNeg >requires((!isScalar< T1 >())&&(isUnaryOperationResultTypeValid< decltype(a), OpNeg >())&&(!isInvalid< UnaryOperationHandler< decltype(a), OpNeg > >()))
constexprnoexcept

negate a mathematical object

Template Parameters
T1type of the left hand side argument
Parameters
a: argument
Returns
an handle which allow delayed evaluation of the operation.

This operator is defined if the ComputeUnaryResult<T1,T2,OpPlus> metafunctions returns valid Result and Handle.

See also
ComputeBinaryResult
IsInvalidType

◆ operator-() [2/2]

template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto tfel::math::operator- ( T1 && a,
T2 && b )->BinaryOperationHandler< decltype(a), decltype(b), OpMinus >requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpMinus >())&&(!((isScalar< T1 >())&&(isScalar< T2 >()))))
constexprnoexcept

substract to mathematical object

Template Parameters
T1type of the left hand side argument
T2type of the right hand side argument
Parameters
a: left hand side argument
b: right hand side argument
Returns
an handle which allow delayed evaluation of the operation

This operator is defined if the ComputeBinaryResult<T1,T2,OpMinus> metafunctions returns valid Result and Handle.

See also
ComputeBinaryResult
IsInvalidType

◆ operator/()

template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto tfel::math::operator/ ( T1 && a,
T2 && b )->BinaryOperationHandler< decltype(a), decltype(b), OpDiv >requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpDiv >())&&(!((isScalar< T1 >())&&(isScalar< T2 >()))))
constexprnoexcept

divide a mathematical object by another

Template Parameters
T1type of the left hand side argument
T2type of the right hand side argument
Parameters
a: left hand side argument
b: right hand side argument
Returns
an handle which allow delayed evaluation of the operation

This operator is defined if the ComputeBinaryResult<T1,T2,OpDiv> metafunctions returns valid Result and Handle.

See also
ComputeBinaryResult
IsInvalidType

◆ operator<<() [1/4]

template<typename NumericType, typename IndexType>
std::ostream & tfel::math::operator<< ( std::ostream & os,
const AitkenAccelerationAlgorithm< NumericType, IndexType > &  )

output stream operator

Parameters
[in]osoutput operator
[in]aalgorithm

◆ operator<<() [2/4]

template<typename NumericType>
std::ostream & tfel::math::operator<< ( std::ostream & os,
const BissectionAlgorithmBase< NumericType > & a )

output stream

Parameters
[out]osoutput stream
[out]aacceleration algorithm

◆ operator<<() [3/4]

template<typename NumericType>
std::ostream & tfel::math::operator<< ( std::ostream & os,
const BissectionAlgorithmData< NumericType > & a )

output stream

Parameters
[out]osoutput stream
[out]ddata

◆ operator<<() [4/4]

TFEL_HOST std::ostream & tfel::math::operator<< ( std::ostream & os,
const StensorConcept auto & s )

serialisation operator

Parameters
[in]osoutput stream
[in]ssymmetric tensor

◆ operator^()

template<typename T1, typename T2>
TFEL_HOST_DEVICE constexpr auto tfel::math::operator^ ( T1 && a,
T2 && b )->BinaryOperationHandler< decltype(a), decltype(b), OpDiadicProduct >requires((isBinaryOperationResultTypeValid< decltype(a), decltype(b), OpDiadicProduct >())&&(!((isScalar< T1 >())&&(isScalar< T2 >()))))
constexprnoexcept

diadic product between two mathematical objects

Template Parameters
T1type of the left hand side argument
T2type of the right hand side argument
Parameters
a: left hand side argument
b: right hand side argument
Returns
an handle which allow delayed evaluation of the operation

This operator is defined if the ComputeBinaryResult<T1,T2,OpDiadicProduct> metafunctions returns valid Result and Handle.

See also
ComputeBinaryResult
IsInvalidType

◆ operator|() [1/6]

template<VectorConcept T1, VectorConcept T2>
requires ( !isInvalid<BinaryOperationResult<T1, T2, OpDotProduct>>())
TFEL_HOST_DEVICE constexpr auto tfel::math::operator| ( const T1 & a,
const T2 & b )
constexprnoexcept
Returns
the inner product of a vector
Parameters
constT1&, the left vector.
constT2&, the right vector.
Returns
const result_type<T,T2,OpMult>, the result.
Warning
the operator| has not the priority expected for such an operation : use of parenthesis is required.

◆ operator|() [2/6]

template<StensorConcept T1, StensorConcept T2>
requires ((getSpaceDimension<T1>() == getSpaceDimension<T2>()) && (!isInvalid<BinaryOperationResult<T1, T2, OpDotProduct>>()))
TFEL_HOST_DEVICE constexpr BinaryOperationResult< T1, T2, OpDotProduct > tfel::math::operator| ( const T1 & a,
const T2 & b )
constexprnoexcept
Returns
the inner product of a stensor
Parameters
constT1&, the left stensor.
constT2&, the right stensor.
Returns
const result_type<T,T2,OpMult>, the result.
Warning
the operator| has not the priority expected for such an operation : use of parenthesis is required.
Returns
the inner product of a vector
Parameters
constT1&, the left vector.
constT2&, the right vector.
Returns
const result_type<T,T2,OpMult>, the result.
Warning
the operator| has not the priority expected for such an operation : use of parenthesis is required.

◆ operator|() [3/6]

template<StensorConcept T1, ST2toST2Concept T2>
TFEL_HOST_DEVICE constexpr auto tfel::math::operator| ( const T1 & a,
const T2 & b )
constexprnoexcept
Returns
the inner product of a stensor
Parameters
constT1&, the left stensor.
constT2&, the right stensor.
Returns
const result_type<T,T2,OpMult>, the result.
Warning
the operator| has not the priority expected for such an operation : use of parenthesis is required.

◆ operator|() [4/6]

template<TensorConcept T1, ST2toT2Concept T2>
requires (!isInvalid<BinaryOperationResult<T1, T2, OpMult>>())
TFEL_HOST_DEVICE constexpr auto tfel::math::operator| ( const T1 & a,
const T2 & b )
constexprnoexcept
Returns
the inner product of a stensor
Parameters
constT1&, the left stensor.
constT2&, the right stensor.
Returns
const result_type<T,T2,OpMult>, the result.
Warning
the operator| has not the priority expected for such an operation : use of parenthesis is required.

◆ operator|() [5/6]

template<TensorConcept T1, T2toT2Concept T2>
requires (!isInvalid<BinaryOperationResult<T1, T2, OpMult>>())
auto tfel::math::operator| ( const T1 & a,
const T2 & b )
constexprnoexcept
Returns
the inner product of a stensor
Parameters
constT1&, the left stensor.
constT2&, the right stensor.
Returns
const result_type<T,T2,OpMult>, the result.
Warning
the operator| has not the priority expected for such an operation : use of parenthesis is required.

◆ operator|() [6/6]

template<TensorConcept TensorType1, TensorConcept TensorType2>
requires ( !isInvalid< BinaryOperationResult<TensorType1, TensorType2, OpDotProduct>>())
TFEL_HOST_DEVICE constexpr auto tfel::math::operator| ( const TensorType1 & a,
const TensorType2 & b )
constexprnoexcept
Returns
the inner product of a tensor
Template Parameters
TensorType1,typeof the left tensor.
TensorType2,typeof the right tensor.
Parameters
[in]athe left tensor.
[in]bthe right tensor.
Returns
const result_type<T,T2,OpMult>, the result.
Warning
the operator| has not the priority expected for such an operation : use of parenthesis is required.

◆ polar_decomposition()

TFEL_HOST void tfel::math::polar_decomposition ( TensorConcept auto & R,
StensorConcept auto & U,
const TensorConcept auto & F )

provide the polar decomposition of a tensor

Parameters
[out]Rrotation tensor
[out]Ustretch tensor
[in]Fdeformation gradient

◆ positive_part()

template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto tfel::math::positive_part ( const StensorType & s,
const bool b = false )

compute the positive part of a symmetric tensor

Parameters
s: tensor
b: if true, refinement of eigen values is performed

◆ power() [1/2]

template<int N, unsigned int D, typename T>
requires (D != 0)
TFEL_HOST_DEVICE auto tfel::math::power ( const std::floating_point auto)
noexcept

computes x to the power N/D

Template Parameters
Nexponent numerator
Mexponent denumerator
Parameters
xvalue

◆ power() [2/2]

template<int N>
TFEL_HOST_DEVICE auto tfel::math::power ( const std::floating_point auto x)
noexcept

computes x to the power N

Template Parameters
Nexponent
Parameters
xvalue

◆ processNewEstimate()

TFEL_HOST_DEVICE constexpr void tfel::math::processNewEstimate ( )
constexprprotectednoexcept

method meant to process the new estimate.

This method may be called to apply bounds on the estimate. When this method is called after the update of the estimate by a new correction, any modification of the estimate is added to this correction (delta_zeros), which thus remains the step actually taken: this method shall not modify the correction itself.

◆ pull_back()

template<ST2toST2Concept ST2toST2Type, TensorConcept TensorType>
requires (getSpaceDimension<ST2toST2Type>() == getSpaceDimension<TensorType>())
TFEL_HOST constexpr auto tfel::math::pull_back ( const ST2toST2Type & C,
const TensorType & F )
constexpr
Returns
the pull-back of a fourth order tensor
Parameters
[in]Cinput
[in]Fdeformation gradient

◆ push_forward() [1/3]

template<ST2toST2Concept ST2toST2Type, TensorConcept TensorType>
requires (getSpaceDimension<ST2toST2Type>() == getSpaceDimension<TensorType>())
TFEL_HOST_DEVICE constexpr auto tfel::math::push_forward ( const ST2toST2Type & C,
const TensorType & F )
constexprnoexcept
Returns
the push-forward of a fourth order tensor:

\[Ct_{ijkl}=F_{im}F_{jn}F_{kp}F_{lq}C_{mnpq} \]

Parameters
[in]Cinput
[in]Fdeformation gradient

◆ push_forward() [2/3]

TFEL_HOST_DEVICE constexpr auto tfel::math::push_forward ( const StensorConcept auto & p,
const TensorConcept auto & F )
constexprnoexcept

compute the product: [F.s.F^{T}]

Parameters
[in]pa symmetric tensor
[in]Fa tensor
Note
the same as pushForward

◆ push_forward() [3/3]

template<ST2toST2Concept ST2toST2Type, ST2toST2Concept ST2toST2Type2, TensorConcept TensorType>
requires (getSpaceDimension<ST2toST2Type>() == getSpaceDimension<ST2toST2Type2>() && getSpaceDimension<ST2toST2Type>() == getSpaceDimension<TensorType>())
TFEL_HOST_DEVICE constexpr void tfel::math::push_forward ( ST2toST2Type & Ct,
const ST2toST2Type2 & C,
const TensorType & F )
constexprnoexcept

performs the push_forward of a st2tost2: [ Ct_{ijkl}=F_{im}F_{jn}F_{kp}F_{lq}C_{mnpq} ]

Parameters
[out]Ctresult
[in]Cinput
[in]Fdeformation gradient

◆ pushForward()

TFEL_HOST_DEVICE constexpr auto tfel::math::pushForward ( const StensorConcept auto & p,
const TensorConcept auto & F )
constexprnoexcept

compute the product: [F.s.F^{T}]

Parameters
[in]pa symmetric tensor
[in]Fa tensor

◆ quaddot()

TFEL_HOST_DEVICE constexpr auto tfel::math::quaddot ( const ST2toST2Concept auto & A,
const ST2toST2Concept auto & B )
constexprnoexcept

This function computes the quadruple contraction of two st2tost2 as.

\[ A::B=\sum_{i,j} A_{ij}B_{ji}\]

in Voigt notation, which also corresponds to

\[A::B=\sum_{i,j,k,l}A_{ijkl}B_{lkji}=\sum_{i,j,k,l}A_{ijkl}B_{klij}\]

Returns
the quadruple contraction scalar
Parameters
[in]A,Bst2tost2

◆ regularisedFischerBurmeisterFunction() [1/2]

template<typename real>
TFEL_MATH_INLINE real tfel::math::regularisedFischerBurmeisterFunction ( const real & x,
const real & y,
const real & e = real{} )

return a regularised version of the Fischer-Burmeister function defined by: [ f\left(x,y\right)=x+y-\sqrt{x^{2}+y^{2}+\varepsilon^{2}} ] This function is such that: [ f\left(x,y\right)=0 \Rightarrow x\geq 0, y\geq 0 and 2\,x\,y=\varepsilon^{2} ]

A Regularized and Smoothed Fischer-Burmeister Method for Quadratic Programming with Applications to Model Predictive Control. Dominic Liao-McPherson, Mike Huang, and Ilya Kolmanovsky

Template Parameters
realnumeric type
Parameters
[in]xfirst argument
[in]ysecond argument
[in]eregularisation parameter
Returns
the value of the Fischer-Burmeister function

◆ regularisedFischerBurmeisterFunction() [2/2]

template<typename real>
real tfel::math::regularisedFischerBurmeisterFunction ( const real & x,
const real & y,
const real & e = real{} )

return a regularised version of the Fischer-Burmeister function defined by: [ f\left(x,y\right)=x+y-\sqrt{x^{2}+y^{2}+\varepsilon^{2}} ] This function is such that: [ f\left(x,y\right)=0 \Rightarrow x\geq 0, y\geq 0 and 2\,x\,y=\varepsilon^{2} ]

A Regularized and Smoothed Fischer-Burmeister Method for Quadratic Programming with Applications to Model Predictive Control. Dominic Liao-McPherson, Mike Huang, and Ilya Kolmanovsky

Template Parameters
realnumeric type
Parameters
[in]xfirst argument
[in]ysecond argument
[in]eregularisation parameter
Returns
the value of the Fischer-Burmeister function

◆ regularisedFischerBurmeisterFunctionFirstDerivatives() [1/2]

template<typename real>
TFEL_MATH_INLINE std::tuple< real, real > tfel::math::regularisedFischerBurmeisterFunctionFirstDerivatives ( const real & x,
const real & y,
const real & e )
Returns
the derivatives of the regularised version of the Fischer-Burmeister function
Template Parameters
realnumeric type
Parameters
[in]xfirst argument
[in]ysecond argument
[in]eregularisation parameter

◆ regularisedFischerBurmeisterFunctionFirstDerivatives() [2/2]

template<typename real>
std::tuple< real, real > tfel::math::regularisedFischerBurmeisterFunctionFirstDerivatives ( const real & x,
const real & y,
const real & e )
Returns
the derivatives of the regularised version of the Fischer-Burmeister function
Template Parameters
realnumeric type
Parameters
[in]xfirst argument
[in]ysecond argument
[in]eregularisation parameter

◆ rejectCurrentCorrection()

TFEL_HOST_DEVICE constexpr void tfel::math::rejectCurrentCorrection ( )
constexprprotectednoexcept

method called when the current correction is rejected.

This can be used to cancel static decondensation.

◆ reportStandardIteration()

TFEL_HOST_DEVICE constexpr void tfel::math::reportStandardIteration ( const NumericType ) const
constexprprotectednoexcept

method called after a standard Newton step

Parameters
[in]eerror

◆ scalarNewtonRaphson() [1/4]

template<typename Function, typename Criterion, typename NumericType, typename IndexType>
TFEL_HOST_DEVICE std::tuple< bool, NumericType, IndexType > tfel::math::scalarNewtonRaphson ( const Function & f,
const Criterion & c,
const NumericType x0,
const IndexType im )

find the root of the given function.

Template Parameters
Functiontype of a generalised function returning the value of the objective function and its derivative
Criteriontype of a function which computes the stopping criterion
NumericTypetype of the root
IndexTypetype of the iteration counter
Parameters
[in]fgeneralised function
[in]ccriterion
[in]x0initial guess
[in]immaximum number of iterations
Returns
a tuple whose first field is a boolean giving the convergence status and the second field the last estimate of the solution.

◆ scalarNewtonRaphson() [2/4]

template<typename Function, typename Criterion, typename NumericType, typename IndexType>
TFEL_HOST_DEVICE std::tuple< bool, NumericType, IndexType > tfel::math::scalarNewtonRaphson ( const Function & f,
const Criterion & c,
const ScalarNewtonRaphsonParameters< NumericType, IndexType > & p )

find the root of the given function.

Template Parameters
Functiontype of a generalised function returning the value of the objective function and its derivative
Criteriontype of a function which computes the stopping criterion
NumericTypetype of the root
IndexTypetype of the iteration counter
Parameters
[in]fgeneralised function
[in]ccriterion
[in]pnewton parameters
Returns
a tuple whose first field is a boolean giving the convergence status and the second field the last estimate of the solution.

◆ scalarNewtonRaphson() [3/4]

template<typename Function, typename Criterion, typename NumericType, typename IndexType>
std::tuple< bool, NumericType, IndexType > tfel::math::scalarNewtonRaphson ( const Function & f,
const Criterion & c,
const NumericType x0,
const IndexType im )

find the root of the given function.

Template Parameters
Functiontype of a generalised function returning the value of the objective function and its derivative
Criteriontype of a function which computes the stopping criterion
NumericTypetype of the root
IndexTypetype of the iteration counter
Parameters
[in]fgeneralised function
[in]ccriterion
[in]x0initial guess
[in]immaximum number of iterations
Returns
a tuple whose first field is a boolean giving the convergence status and the second field the last estimate of the solution.

◆ scalarNewtonRaphson() [4/4]

template<typename Function, typename Criterion, typename NumericType, typename IndexType>
std::tuple< bool, NumericType, IndexType > tfel::math::scalarNewtonRaphson ( const Function & f,
const Criterion & c,
const ScalarNewtonRaphsonParameters< NumericType, IndexType > & p )

find the root of the given function.

Template Parameters
Functiontype of a generalised function returning the value of the objective function and its derivative
Criteriontype of a function which computes the stopping criterion
NumericTypetype of the root
IndexTypetype of the iteration counter
Parameters
[in]fgeneralised function
[in]ccriterion
[in]pnewton parameters
Returns
a tuple whose first field is a boolean giving the convergence status and the second field the last estimate of the solution.

◆ setComponent() [1/2]

template<typename NumType, typename T>
requires (isAssignableTo<NumType, T>())
TFEL_HOST_DEVICE constexpr void tfel::math::setComponent ( ST2toST2Concept auto & A,
unsigned short i,
unsigned short j,
unsigned short k,
unsigned short l,
const T & Aijkl )
constexprnoexcept

This function set the component (i,j,k,l) of a st2tost2 to a value Aijkl, which may be useful in some cases.

Returns
void
Template Parameters
NumTypetype of the values of the st2tost2
T: type of the value Aijkl to set must be same as the type of the values of the st2tost2.
Parameters
[in]Ast2tost2
[in]i,j,k,lunsigned short
[in]Aijklvalue that we want for

\[A_{ijkl}\]

◆ setComponent() [2/2]

template<typename NumType, typename T>
requires (isAssignableTo<NumType, T>())
TFEL_HOST_DEVICE constexpr void tfel::math::setComponent ( StensorConcept auto & A,
unsigned short i,
unsigned short j,
const T & Aij )
constexprnoexcept

This function set the component (i,j) of a stensor to a value Aij, using the function VoigtIndex.

Returns
void
Template Parameters
NumTypetype of the values of the stensor
T: type of the value Aij to set must be same as the type of the values of the stensor.
Parameters
[in]Astensor
[in]i,junsigned short
[in]Aijvalue that we want for

\[A_{ij}\]

◆ sigmaeq()

TFEL_HOST_DEVICE constexpr auto tfel::math::sigmaeq ( const StensorConcept auto & s)
constexprnoexcept
Returns
the von Mises stress of a symmetric tensor
Parameters
[in]ssymmetric tensor

◆ slice() [1/4]

template<unsigned short I, unsigned short J, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::slice ( const tvector< N, T > & v)
constexprnoexcept

create a slice from a tiny vector (const version)

Parameters
[in]v: vector
Note
: the slice object contains a reference to the source vector, so this vector shall not be destroyed before the slice

◆ slice() [2/4]

template<unsigned short I, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::slice ( const tvector< N, T > & v)
constexprnoexcept

create a slice from a tiny vector

Parameters
[in]v: vector
Note
: the slice object contains a reference to the source vector, so this vector shall not be destroyed before the slice

◆ slice() [3/4]

template<unsigned short I, unsigned short J, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::slice ( tvector< N, T > & v)
constexprnoexcept

create a slice from a tiny vector

Parameters
[in]v: vector
Note
: the slice object contains a reference to the source vector, so this vector shall not be destroyed before the slice

◆ slice() [4/4]

template<unsigned short I, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::slice ( tvector< N, T > & v)
constexprnoexcept

create a slice from a tiny vector

Parameters
[in]v: vector
Note
: the slice object contains a reference to the source vector, so this vector shall not be destroyed before the slice

◆ solveLinearSystem()

template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType>
TFEL_HOST_DEVICE bool TinyNonLinearSolverBase::solveLinearSystem ( FixedSizeMatrixType & m,
FixedSizeVectorType & v ) const
nodiscardprotectednoexcept

solve linear system

Returns
true on success
Parameters
[in]mmatrix
[in,out]vright hand side on input, solution on output

◆ solveNonLinearSystem()

TFEL_HOST_DEVICE bool tfel::math::solveNonLinearSystem ( )
protected

solve the non linear problem. This methods wraps the resolution algorithm and tries to handles failures of the latter.

Failure is handled by dividing the last correction by two and restarting the resolution algorithm implemented in solveNonLinearSystem2. This can be done several times, up to the moment when the correction allows the resolution algorithm to restart correctly.

If the resolution algorithm fails before being able to compute a correction, it probably means that the initial estimate given by the user is pretty bad. Since the main usage of the non linear solver is to find the increment of the internal state variables of some physical behaviours, the null vector is a pretty natural choice for an intial estimate, so we simply choose here to divide the initial estimate by two and restart the resolution algorithm implemented in solveNonLinearSystem2. Of course, this strategy is questionable in the general case.

Returns
true on success

◆ solveNonLinearSystem2()

TFEL_HOST_DEVICE bool tfel::math::solveNonLinearSystem2 ( )
protected

solve the non linear problem. This method is called by the solveNonLinearSystem and must contain the core of the resolution algorithm.

Returns
true on success

◆ sortEigenValues()

template<ScalarConcept ValueType>
tvector< 3u, ValueType > tfel::math::sortEigenValues ( const tvector< 3u, ValueType > & vp,
stensor_common::EigenValuesOrdering o = stensor_common::DESCENDING )
nodiscardconstexprnoexcept

sort the eigenvalues

Parameters
[in]vpeigen values
[in]orderingexpected ordering
Note
this function is useful, even though one may ask the eigen values to be sorted in computeEigenValues since in 1D the eigenvalues are not sorted by this method and in 2D, only the inplane eigenvalues are sorted.

◆ square()

TFEL_HOST_DEVICE auto tfel::math::square ( const StensorConcept auto & s)
Returns
the square of a symmetric stensor
Parameters
[in]s: squared tensor

◆ square_root()

TFEL_HOST_DEVICE auto tfel::math::square_root ( const StensorConcept auto & s)
Returns
the square root of a symmetric tensor

◆ squaredFischerBurmeisterFunction() [1/2]

template<typename real>
TFEL_MATH_INLINE real tfel::math::squaredFischerBurmeisterFunction ( const real & x,
const real & y )
Returns
the square of the Fischer-Burmeister function
Template Parameters
realnumeric type
Parameters
[in]xfirst argument
[in]ysecond argument

◆ squaredFischerBurmeisterFunction() [2/2]

template<typename real>
real tfel::math::squaredFischerBurmeisterFunction ( const real & x,
const real & y )
Returns
the square of the Fischer-Burmeister function
Template Parameters
realnumeric type
Parameters
[in]xfirst argument
[in]ysecond argument

◆ squaredFischerBurmeisterFunctionFirstDerivatives() [1/2]

template<typename real>
TFEL_MATH_INLINE std::tuple< real, real > tfel::math::squaredFischerBurmeisterFunctionFirstDerivatives ( const real & x,
const real & y )
Returns
the derivatives of the square of the Fischer-Burmeister function
Template Parameters
realnumeric type
Parameters
[in]xfirst argument
[in]ysecond argument

◆ squaredFischerBurmeisterFunctionFirstDerivatives() [2/2]

template<typename real>
std::tuple< real, real > tfel::math::squaredFischerBurmeisterFunctionFirstDerivatives ( const real & x,
const real & y )
Returns
the derivatives of the square of the Fischer-Burmeister function
Template Parameters
realnumeric type
Parameters
[in]xfirst argument
[in]ysecond argument

◆ st2tost2()

template<typename ValueType, std::size_t M, std::size_t... d>
tfel::math::st2tost2 ( ValueType const(&)[M],
ValueType const(&... arrays)[d] )->st2tost2< StensorSizeToDime< sizeof...(d)+1 >::value, ValueType >

class template argument deduction

Template Parameters
ValueTypenumeric type
Mnumber of columns
dsizes of the arrays, that must be all equal to M

◆ st2tot2()

template<typename ValueType, std::size_t M, std::size_t... d>
tfel::math::st2tot2 ( ValueType const(&)[M],
ValueType const(&... arrays)[d] )->st2tot2< TensorSizeToDime< sizeof...(d)+1 >::value, ValueType >

class template argument deduction

Template Parameters
ValueTypenumeric type
Mnumber of columns
dsizes of the arrays, that must be all equal to M

◆ syme()

TFEL_HOST_DEVICE constexpr auto tfel::math::syme ( const TensorConcept auto & t)
constexprnoexcept
Returns
the symmetric part of a tensor
Parameters
[in]ttensor

◆ symmetric_product()

template<StensorConcept StensorType1, StensorConcept StensorType2>
requires (getSpaceDimension<StensorType1>() == getSpaceDimension<StensorType2>())
TFEL_HOST_DEVICE constexpr auto tfel::math::symmetric_product ( const StensorType1 & s1,
const StensorType2 & s2 )
constexprnoexcept

return the symmetric product of two stensors as a symmetric tensor:

\[\frac{1}{2}\left(s1 * s2 + s2 * s1\right) \]

Parameters
[in]s1first tensor
[in]s2second tensor

◆ t2tost2()

template<typename ValueType, std::size_t M, std::size_t... d>
tfel::math::t2tost2 ( ValueType const(&)[M],
ValueType const(&... arrays)[d] )->t2tost2< StensorSizeToDime< sizeof...(d)+1 >::value, ValueType >

class template argument deduction

Template Parameters
ValueTypenumeric type
Mnumber of columns
dsizes of the arrays, that must be all equal to M

◆ t2tot2()

template<typename ValueType, std::size_t M, std::size_t... d>
tfel::math::t2tot2 ( ValueType const(&)[M],
ValueType const(&... arrays)[d] )->t2tot2< TensorSizeToDime< sizeof...(d)+1 >::value, ValueType >

class template argument deduction

Template Parameters
ValueTypenumeric type
Mnumber of columns
dsizes of the arrays, that must be all equal to M

◆ TinyNonLinearSolverBase()

template<typename... ExternalWorkSpaceArguments>
TFEL_HOST_DEVICE tfel::math::TinyNonLinearSolverBase ( ExternalWorkSpaceArguments && ...)
noexcept

A base class for algorithms dedicated to solve finite sized system of non linear equations.

Template Parameters
Nsize of the system of non linear equations.
NumericTypenumeric type.
Childbase class.
ExternalWorkSpaceclass containing data members used by the solver.

By default, the Child class must:

  1. Set the values of epsilon and iterMax data members and the initial guess of the unknowns, i.e. by setting the value of the zeros data member.
  2. Provide a method called computeResidual which must computes the residual, i.e. the data member fzeros using the current estimate of the solution, i.e. the data member zeros. When meaningful, this method may also compute the jacobian matrix, i.e. the data member jacobian.

This class has numerous customisation points:

  • checkConvergence: checks if convergence is achieved.
  • processNewEstimate: this method is called at the beginning of the resolution and each time the estimate of the solution is updated. The default implementation does nothing.
  • rejectCurrentCorrection: this method is meant to be overloaded by the Child class to handle the rejection of the current correction. The default implementation does nothing.
  • reportBeginningOfResolution: this method is meant to be overloaded by the Child class to trace the beginning of the resolution. The default implementation does nothing.
  • reportSuccess: this method is meant to be overloaded by the Child class to report a successfull resolution. The default implementation does nothing.
  • reportFailure: this method is meant to be overloaded by the Child class to report the resolution fails because the maximal number of iterations has been reached. The default implementation does nothing.
  • reportInvalidResidualEvaluation: this method is meant to be overloaded by the Child class to report that the residual evaluation failed. The default implementation does nothing.
  • reportNewCorrectionComputationFailure: this method is meant to be overloaded by the Child` class to report the failure of the computation of a new correction. */ template <unsigned short N, typename NumericType, typename Child, template <unsigned short, typename> typename ExternalWorkSpace = StackAllocatedTinyNonLinearSolverWorkspace> struct TinyNonLinearSolverBase : public ExternalWorkSpace<N, NumericType> {

static_assert(N != 0, "invalid size"); static_assert(std::is_floating_point_v<NumericType>, "invalid numeric type");

a simple alias using iteration_number_type = unsigned short;

default constructor TinyNonLinearSolverBase() = default; /*!

constructor used to initialize the external workspace

Parameters
[in]argsarguments forwarded to the external workspace

◆ tmatrix()

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 Parameters
ValueTypenumeric type
Mnumber of columns
dsizes of the arrays, that must be all equal to M

◆ trace() [1/3]

TFEL_HOST_DEVICE constexpr auto tfel::math::trace ( const ST2toST2Concept auto & A)
constexprnoexcept

This function computes the trace of a st2tost2 as.

\[ Tr\left(A\right)=\sum_i A_{ii}\]

in Voigt notation, which also corresponds to

\[Tr\left(A\right)=I::A=\frac{1}{2}\sum_{i,j}(A_{ijij}+A_{ijji})\]

Returns
the trace
Parameters
[in]Ast2tost2

◆ trace() [2/3]

TFEL_HOST_DEVICE constexpr auto tfel::math::trace ( const StensorConcept auto & s)
constexprnoexcept
Returns
the trace of a symmetric tensor
Parameters
[in]ssymmetric tensor

◆ trace() [3/3]

TFEL_HOST_DEVICE constexpr auto tfel::math::trace ( const TensorConcept auto & s)
constexprnoexcept
Returns
the trace of a tensor
Parameters
[in]ttensor

◆ transpose() [1/2]

TFEL_HOST_DEVICE constexpr auto tfel::math::transpose ( ST2toST2Concept auto && t)
constexprnoexcept

This function computes the transpose of a st2tost2 as.

\[ {}^tA_{ij}=A_{ji}\]

in Voigt notation, which also corresponds to

\[ {}^tA_{ijkl}=A_{lkji}=A_{klij}\]

.

Returns
a st2tost2
Parameters
[in]tst2tost2

◆ transpose() [2/2]

template<TensorConcept TensorType>
TFEL_HOST_DEVICE constexpr auto tfel::math::transpose ( TensorType && t)
nodiscardconstexprnoexcept
Returns
an expression representing the transpose of a tensor
Parameters
[in]ttensor

◆ tresca() [1/2]

template<typename T>
TFEL_HOST_DEVICE constexpr T tfel::math::tresca ( const stensor< 1u, T > & s,
const bool = false )
constexpr

compute the tresca stress for a symmetric tensor.

Partial specialisation in 1D

Parameters
s: symmetric tensor

◆ tresca() [2/2]

template<unsigned short N, typename T>
TFEL_HOST_DEVICE T tfel::math::tresca ( const stensor< N, T > & s,
const bool b = false )

compute the tresca stress for a symmetric tensor

Parameters
s: symmetric tensor

◆ unsyme()

TFEL_HOST_DEVICE constexpr auto tfel::math::unsyme ( const StensorConcept auto & s)
constexprnoexcept
Returns
the unsymmetric tensor corresponding to the given symmetric tensor.
Parameters
[in]ssymmetric tensor

◆ updateOrCheckJacobian()

TFEL_HOST_DEVICE constexpr void tfel::math::updateOrCheckJacobian ( )
constexprprotectednoexcept

update the jacobian matrix if required.

This method can be used to compute the jacobian or part of the jacobian numerically. If the jacobian was computed in computeResidual, this method can be used to compare it to a numerical approximation.

This method is not used directly used by the TinyNonLinearSolverBase. It is only defined to name an appropriate method which shall be used in derived class if required, through the callUpdateOrCheckJacobian method.

The derived class may define this method so that it returns a boolean: false reports that the jacobian could not be computed.

◆ VoigtIndex()

template<unsigned short N>
TFEL_HOST_DEVICE constexpr unsigned short tfel::math::VoigtIndex ( const unsigned short i,
const unsigned short j )
constexpr

This function returns the Voigt index of two indices (beginning from 0). Hence, the correspondence is, in 3d:

\[(0,0)->0, (1,1)->1, (2,2)->2, (0,1) or (1,0) -> 3, (0,2) or (2,0) -> 4, (1,2) or (2,1)-> 5\]

. In 2d, it is

\[(0,0)->0, (1,1)->1, (2,2)->2, (0,1) or (1,0) -> 3\]

. In 1d,

\[(0,0)->0, (1,1)->1, (2,2)->2\]

. Be careful to the Voigt indices between 3 and 5, which are different from the usual convention:

\[\varepsilon_{12}\]

is usually the last component of the vector

\[\varepsilon\]

in the usual Voigt notation, but here it is situated as the fourth component, in order that the vector in dimension 2 is just a truncation of the vector in dimension 3.

Returns
an unsigned short
Parameters
[in]i,junsigned short

Variable Documentation

◆ indexing_policy_size

template<typename IndexingPolicyType>
auto tfel::math::indexing_policy_size
inlineconstexpr
Initial value:
= [] {
return p.size();
}()

total size of a fixed size policy

◆ iter

iteration_number_type tfel::math::iter
protected

current iteration number

This variable is set to zero at the beginning of the solveNonLinearSystem method

◆ KrigingDefaultModel< 1u, T, NM >::drifts

template<typename T, typename NM>
const KrigingDefaultModel<1u,T,NM>::Drifts tfel::math::KrigingDefaultModel< 1u, T, NM >::drifts[2u]
Initial value:
= {
forward declaration, see KrigingDefaultModels.hxx
Definition KrigingDefaultModel1D.hxx:25

◆ KrigingDefaultModel< 2u, T, NM >::drifts

template<typename T, typename NM>
const KrigingDefaultModel<2u,T,NM>::Drifts tfel::math::KrigingDefaultModel< 2u, T, NM >::drifts[3u]

◆ KrigingDefaultModel< 3u, T, NM >::drifts

◆ KrigingPieceWiseLinearModel1D< T >::drifts

template<typename T>
const KrigingPieceWiseLinearModel1D<T>::Drifts tfel::math::KrigingPieceWiseLinearModel1D< T >::drifts[1u]
Initial value:
= {
KrigingPieceWiseLinearModel1D<T>::one}

◆ space_dimension

template<MathObjectConcept MathObjectType>
auto tfel::math::space_dimension
inlineconstexpr
Initial value:

inline variable to retrieve the space dimension associated with a math object.

Template Parameters
MathObjectTypemath object