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

13/01/2012 More...

#include <concepts>
#include <type_traits>
#include "TFEL/Config/TFELConfig.hxx"
#include "TFEL/Math/General/ComputeUnaryResult.hxx"
#include "TFEL/Math/power.ixx"

Classes

struct  tfel::math::UnaryResultType< float, Power< N, D > >
 partial specialisation for the UnaryResultType class for exponentation of floating point number using rational exponent More...
struct  tfel::math::UnaryResultType< double, Power< N, D > >
 partial specialisation for the UnaryResultType class for exponentation of floating point number using rational exponent More...
struct  tfel::math::UnaryResultType< long double, Power< N, D > >
 partial specialisation for the UnaryResultType class for exponentation of floating point number using rational exponent 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.

Functions

template<int N>
TFEL_HOST_DEVICE auto tfel::math::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 tfel::math::power (const std::floating_point auto) noexcept
 computes x to the power N/D

Detailed Description

13/01/2012

Author
Thomas Helfer