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

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.

Functions

template<typename T1>
TFEL_HOST_DEVICE constexpr auto tfel::math::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 tfel::math::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 tfel::math::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 tfel::math::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 tfel::math::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 tfel::math::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

Detailed Description

Author
Thomas Helfer
Date
03/02/2015