xtensor
Loading...
Searching...
No Matches
xt::numeric_constants< T > Struct Template Reference

Static Public Attributes

static constexpr T PI = std::numbers::pi_v<T>
static constexpr T PI_2 = std::numbers::pi_v<T> / 2
static constexpr T PI_4 = std::numbers::pi_v<T> / 4
static constexpr T D_1_PI = std::numbers::inv_pi_v<T>
static constexpr T D_2_PI = 2 * std::numbers::inv_pi_v<T>
static constexpr T D_2_SQRTPI = 2 * std::numbers::inv_sqrtpi_v<T>
static constexpr T SQRT2 = std::numbers::sqrt2_v<T>
static constexpr T SQRT1_2 = std::numbers::sqrt2_v<T> / 2
static constexpr T E = std::numbers::e_v<T>
static constexpr T LOG2E = std::numbers::log2e_v<T>
static constexpr T LOG10E = std::numbers::log10e_v<T>
static constexpr T LN2 = std::numbers::ln2_v<T>

Detailed Description

template<class T = double>
struct xt::numeric_constants< T >

Definition at line 40 of file xmath.hpp.

Member Data Documentation

◆ D_1_PI

template<class T = double>
T xt::numeric_constants< T >::D_1_PI = std::numbers::inv_pi_v<T>
staticconstexpr

Definition at line 45 of file xmath.hpp.

◆ D_2_PI

template<class T = double>
T xt::numeric_constants< T >::D_2_PI = 2 * std::numbers::inv_pi_v<T>
staticconstexpr

Definition at line 46 of file xmath.hpp.

◆ D_2_SQRTPI

template<class T = double>
T xt::numeric_constants< T >::D_2_SQRTPI = 2 * std::numbers::inv_sqrtpi_v<T>
staticconstexpr

Definition at line 47 of file xmath.hpp.

◆ E

template<class T = double>
T xt::numeric_constants< T >::E = std::numbers::e_v<T>
staticconstexpr

Definition at line 50 of file xmath.hpp.

◆ LN2

template<class T = double>
T xt::numeric_constants< T >::LN2 = std::numbers::ln2_v<T>
staticconstexpr

Definition at line 53 of file xmath.hpp.

◆ LOG10E

template<class T = double>
T xt::numeric_constants< T >::LOG10E = std::numbers::log10e_v<T>
staticconstexpr

Definition at line 52 of file xmath.hpp.

◆ LOG2E

template<class T = double>
T xt::numeric_constants< T >::LOG2E = std::numbers::log2e_v<T>
staticconstexpr

Definition at line 51 of file xmath.hpp.

◆ PI

template<class T = double>
T xt::numeric_constants< T >::PI = std::numbers::pi_v<T>
staticconstexpr

Definition at line 42 of file xmath.hpp.

◆ PI_2

template<class T = double>
T xt::numeric_constants< T >::PI_2 = std::numbers::pi_v<T> / 2
staticconstexpr

Definition at line 43 of file xmath.hpp.

◆ PI_4

template<class T = double>
T xt::numeric_constants< T >::PI_4 = std::numbers::pi_v<T> / 4
staticconstexpr

Definition at line 44 of file xmath.hpp.

◆ SQRT1_2

template<class T = double>
T xt::numeric_constants< T >::SQRT1_2 = std::numbers::sqrt2_v<T> / 2
staticconstexpr

Definition at line 49 of file xmath.hpp.

◆ SQRT2

template<class T = double>
T xt::numeric_constants< T >::SQRT2 = std::numbers::sqrt2_v<T>
staticconstexpr

Definition at line 48 of file xmath.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/xtensor/xtensor/include/xtensor/core/xmath.hpp