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

This file implements methods of class Power. More...

#include <ratio>
#include <cmath>
#include <type_traits>
#include "TFEL/Config/TFELConfig.hxx"

Classes

struct  tfel::math::internals::PowerGenerator< N, D >
class  tfel::math::internals::PowerPos< N >
struct  tfel::math::internals::PowerPosImpl< N, M >
struct  tfel::math::internals::PowerPosImpl< N, 0u >
struct  tfel::math::internals::PowerPosImpl< 0u, M >
struct  tfel::math::internals::PowerPosImpl< 0u, 0u >
struct  tfel::math::internals::PowerPos< 0u >
struct  tfel::math::internals::PowerPos< 1u >
struct  tfel::math::internals::PowerPos< 2u >
struct  tfel::math::internals::PowerPos< 3u >
struct  tfel::math::internals::PowerNeg< N >
 an helper structure to compute the negative power of a number. More...
struct  tfel::math::internals::PowerSqrtNeg< N >
class  tfel::math::internals::PowerSqrtPos< N >
class  tfel::math::internals::PowerImplSelector< N, 1u >
class  tfel::math::internals::PowerImplSelector< N, 2u >
class  tfel::math::internals::PowerImplSelector< N, D >

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.
namespace  tfel::math::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.

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

Detailed Description

This file implements methods of class Power.

Author
Thomas Helfer
Date
04 Jan 2012

Function Documentation

◆ power()

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