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

Classes

struct  tfel::math::MathObjectTraitsBase< ValueType, SizeType >
 a helper structure to define the MathObjectTraits more compactly More...
struct  tfel::math::MathObjectTraits< MathObjectType >
 a traits class describing a mathematical object More...
struct  tfel::math::BaseType< T >
 partial specialisation for math objects More...

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.

Concepts

concept  tfel::math::MathObjectConcept

Typedefs

template<typename MathObjectType>
using tfel::math::numeric_type
 a simple alias
template<typename MathObjectType>
using tfel::math::index_type
 a simple alias

Functions

template<StandardArithmeticTypeConcept T>
TFEL_HOST_DEVICE constexpr T & tfel::math::base_type_cast (T &v) noexcept
 cast the value to the base type
template<StandardArithmeticTypeConcept T>
TFEL_HOST_DEVICE constexpr const T & tfel::math::base_type_cast (const T &v) noexcept
 cast the value to the base type
template<MathObjectConcept MathObjectType>
TFEL_HOST_DEVICE constexpr unsigned short tfel::math::getSpaceDimension ()
 an helper function to retrieve the space dimension associated with a math object.
template<MathObjectConcept MathObjectType1, MathObjectConcept... MathObjectTypes>
TFEL_HOST_DEVICE constexpr bool tfel::math::checkThatAllSpaceDimensionsAreEqual () noexcept
 an helper function checking if all the given math objects have the space dimension.

Variables

template<MathObjectConcept MathObjectType>
constexpr auto tfel::math::space_dimension
 inline variable to retrieve the space dimension associated with a math object.

Detailed Description

Author
Thomas Helfer
Date
28/12/2020