MCKL
Monte Carlo Kernel Library
Functions
Constants

Constants. More...

Functions

template<typename T >
constexpr T mckl::const_e () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(e\) More...
 
template<typename T >
constexpr T mckl::const_e_inv () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(1/e\) More...
 
template<typename T >
constexpr T mckl::const_inf ()
 Infinity. More...
 
template<typename T >
constexpr T mckl::const_ln_10 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(10)\) More...
 
template<typename T >
constexpr T mckl::const_ln_2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(2)\) More...
 
template<typename T >
constexpr T mckl::const_ln_3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(3)\) More...
 
template<typename T >
constexpr T mckl::const_ln_5 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(5)\) More...
 
template<typename T >
constexpr T mckl::const_ln_inv_10 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(1/\ln(10)\) More...
 
template<typename T >
constexpr T mckl::const_ln_inv_2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(1/\ln(2)\) More...
 
template<typename T >
constexpr T mckl::const_ln_inv_3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(1/\ln(3)\) More...
 
template<typename T >
constexpr T mckl::const_ln_inv_5 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(1/\ln(5)\) More...
 
template<typename T >
constexpr T mckl::const_ln_ln_2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(\ln(2))\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(\pi)\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi_2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(2\pi)\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi_2by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln((2/3)\pi)\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi_3by4 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln((3/4)\pi)\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi_4by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln((4/3)\pi)\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi_by2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(\pi/2)\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi_by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(\pi/3)\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi_by4 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(\pi/4)\) More...
 
template<typename T >
constexpr T mckl::const_ln_pi_by6 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\ln(\pi/6)\) More...
 
template<typename T >
constexpr T mckl::const_nan ()
 Non-signalling NaN. More...
 
template<typename T >
constexpr T mckl::const_one ()
 One. More...
 
template<typename T >
constexpr T mckl::const_pi () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\pi\) More...
 
template<typename T >
constexpr T mckl::const_pi_2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(2\pi\) More...
 
template<typename T >
constexpr T mckl::const_pi_2by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \((2/3)\pi\) More...
 
template<typename T >
constexpr T mckl::const_pi_3by4 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \((3/4)\pi\) More...
 
template<typename T >
constexpr T mckl::const_pi_4by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \((4/3)\pi\) More...
 
template<typename T >
constexpr T mckl::const_pi_by2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\pi/2\) More...
 
template<typename T >
constexpr T mckl::const_pi_by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\pi/3\) More...
 
template<typename T >
constexpr T mckl::const_pi_by4 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\pi/4\) More...
 
template<typename T >
constexpr T mckl::const_pi_by6 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\pi/6\) More...
 
template<typename T >
constexpr T mckl::const_pi_inv () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(1/\pi\) More...
 
template<typename T >
constexpr T mckl::const_pi_sqr () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\pi^2\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_10 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{10}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_1by10 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{1/10}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_1by2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{1/2}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_1by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{1/3}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_1by5 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{1/5}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{2}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{3}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_5 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{5}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_e () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{e}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_e_inv () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{1/e}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{\pi}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{2\pi}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_2by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{(2/3)\pi}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_3by4 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{(3/4)\pi/}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_4by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{(4/3)\pi}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_by2 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{\pi/2}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_by3 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{\pi/3}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_by4 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{\pi/4}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_by6 () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{\pi/6}\) More...
 
template<typename T >
constexpr T mckl::const_sqrt_pi_inv () noexcept(std::is_floating_point< T >::value||std::is_integral< T >::value)
 \(\sqrt{1/\pi}\) More...
 
template<typename T >
constexpr T mckl::const_zero ()
 Zero. More...
 

Detailed Description

Constants.

Function Documentation

◆ const_e()

template<typename T >
constexpr T mckl::const_e ( )
inlinenoexcept

\(e\)

Definition at line 243 of file constants.hpp.

◆ const_e_inv()

template<typename T >
constexpr T mckl::const_e_inv ( )
inlinenoexcept

\(1/e\)

Definition at line 247 of file constants.hpp.

◆ const_inf()

template<typename T >
constexpr T mckl::const_inf ( )
inline

Infinity.

Definition at line 70 of file constants.hpp.

◆ const_ln_10()

template<typename T >
constexpr T mckl::const_ln_10 ( )
inlinenoexcept

\(\ln(10)\)

Definition at line 308 of file constants.hpp.

◆ const_ln_2()

template<typename T >
constexpr T mckl::const_ln_2 ( )
inlinenoexcept

\(\ln(2)\)

Definition at line 296 of file constants.hpp.

◆ const_ln_3()

template<typename T >
constexpr T mckl::const_ln_3 ( )
inlinenoexcept

\(\ln(3)\)

Definition at line 300 of file constants.hpp.

◆ const_ln_5()

template<typename T >
constexpr T mckl::const_ln_5 ( )
inlinenoexcept

\(\ln(5)\)

Definition at line 304 of file constants.hpp.

◆ const_ln_inv_10()

template<typename T >
constexpr T mckl::const_ln_inv_10 ( )
inlinenoexcept

\(1/\ln(10)\)

Definition at line 327 of file constants.hpp.

◆ const_ln_inv_2()

template<typename T >
constexpr T mckl::const_ln_inv_2 ( )
inlinenoexcept

\(1/\ln(2)\)

Definition at line 312 of file constants.hpp.

◆ const_ln_inv_3()

template<typename T >
constexpr T mckl::const_ln_inv_3 ( )
inlinenoexcept

\(1/\ln(3)\)

Definition at line 317 of file constants.hpp.

◆ const_ln_inv_5()

template<typename T >
constexpr T mckl::const_ln_inv_5 ( )
inlinenoexcept

\(1/\ln(5)\)

Definition at line 322 of file constants.hpp.

◆ const_ln_ln_2()

template<typename T >
constexpr T mckl::const_ln_ln_2 ( )
inlinenoexcept

\(\ln(\ln(2))\)

Definition at line 332 of file constants.hpp.

◆ const_ln_pi()

template<typename T >
constexpr T mckl::const_ln_pi ( )
inlinenoexcept

\(\ln(\pi)\)

Definition at line 200 of file constants.hpp.

◆ const_ln_pi_2()

template<typename T >
constexpr T mckl::const_ln_pi_2 ( )
inlinenoexcept

\(\ln(2\pi)\)

Definition at line 204 of file constants.hpp.

◆ const_ln_pi_2by3()

template<typename T >
constexpr T mckl::const_ln_pi_2by3 ( )
inlinenoexcept

\(\ln((2/3)\pi)\)

Definition at line 229 of file constants.hpp.

◆ const_ln_pi_3by4()

template<typename T >
constexpr T mckl::const_ln_pi_3by4 ( )
inlinenoexcept

\(\ln((3/4)\pi)\)

Definition at line 234 of file constants.hpp.

◆ const_ln_pi_4by3()

template<typename T >
constexpr T mckl::const_ln_pi_4by3 ( )
inlinenoexcept

\(\ln((4/3)\pi)\)

Definition at line 239 of file constants.hpp.

◆ const_ln_pi_by2()

template<typename T >
constexpr T mckl::const_ln_pi_by2 ( )
inlinenoexcept

\(\ln(\pi/2)\)

Definition at line 209 of file constants.hpp.

◆ const_ln_pi_by3()

template<typename T >
constexpr T mckl::const_ln_pi_by3 ( )
inlinenoexcept

\(\ln(\pi/3)\)

Definition at line 214 of file constants.hpp.

◆ const_ln_pi_by4()

template<typename T >
constexpr T mckl::const_ln_pi_by4 ( )
inlinenoexcept

\(\ln(\pi/4)\)

Definition at line 219 of file constants.hpp.

◆ const_ln_pi_by6()

template<typename T >
constexpr T mckl::const_ln_pi_by6 ( )
inlinenoexcept

\(\ln(\pi/6)\)

Definition at line 224 of file constants.hpp.

◆ const_nan()

template<typename T >
constexpr T mckl::const_nan ( )
inline

Non-signalling NaN.

Definition at line 81 of file constants.hpp.

◆ const_one()

template<typename T >
constexpr T mckl::const_one ( )
inline

One.

Definition at line 100 of file constants.hpp.

◆ const_pi()

template<typename T >
constexpr T mckl::const_pi ( )
inlinenoexcept

\(\pi\)

Definition at line 107 of file constants.hpp.

◆ const_pi_2()

template<typename T >
constexpr T mckl::const_pi_2 ( )
inlinenoexcept

\(2\pi\)

Definition at line 111 of file constants.hpp.

◆ const_pi_2by3()

template<typename T >
constexpr T mckl::const_pi_2by3 ( )
inlinenoexcept

\((2/3)\pi\)

Definition at line 139 of file constants.hpp.

◆ const_pi_3by4()

template<typename T >
constexpr T mckl::const_pi_3by4 ( )
inlinenoexcept

\((3/4)\pi\)

Definition at line 143 of file constants.hpp.

◆ const_pi_4by3()

template<typename T >
constexpr T mckl::const_pi_4by3 ( )
inlinenoexcept

\((4/3)\pi\)

Definition at line 147 of file constants.hpp.

◆ const_pi_by2()

template<typename T >
constexpr T mckl::const_pi_by2 ( )
inlinenoexcept

\(\pi/2\)

Definition at line 123 of file constants.hpp.

◆ const_pi_by3()

template<typename T >
constexpr T mckl::const_pi_by3 ( )
inlinenoexcept

\(\pi/3\)

Definition at line 127 of file constants.hpp.

◆ const_pi_by4()

template<typename T >
constexpr T mckl::const_pi_by4 ( )
inlinenoexcept

\(\pi/4\)

Definition at line 131 of file constants.hpp.

◆ const_pi_by6()

template<typename T >
constexpr T mckl::const_pi_by6 ( )
inlinenoexcept

\(\pi/6\)

Definition at line 135 of file constants.hpp.

◆ const_pi_inv()

template<typename T >
constexpr T mckl::const_pi_inv ( )
inlinenoexcept

\(1/\pi\)

Definition at line 115 of file constants.hpp.

◆ const_pi_sqr()

template<typename T >
constexpr T mckl::const_pi_sqr ( )
inlinenoexcept

\(\pi^2\)

Definition at line 119 of file constants.hpp.

◆ const_sqrt_10()

template<typename T >
constexpr T mckl::const_sqrt_10 ( )
inlinenoexcept

\(\sqrt{10}\)

Definition at line 272 of file constants.hpp.

◆ const_sqrt_1by10()

template<typename T >
constexpr T mckl::const_sqrt_1by10 ( )
inlinenoexcept

\(\sqrt{1/10}\)

Definition at line 292 of file constants.hpp.

◆ const_sqrt_1by2()

template<typename T >
constexpr T mckl::const_sqrt_1by2 ( )
inlinenoexcept

\(\sqrt{1/2}\)

Definition at line 277 of file constants.hpp.

◆ const_sqrt_1by3()

template<typename T >
constexpr T mckl::const_sqrt_1by3 ( )
inlinenoexcept

\(\sqrt{1/3}\)

Definition at line 282 of file constants.hpp.

◆ const_sqrt_1by5()

template<typename T >
constexpr T mckl::const_sqrt_1by5 ( )
inlinenoexcept

\(\sqrt{1/5}\)

Definition at line 287 of file constants.hpp.

◆ const_sqrt_2()

template<typename T >
constexpr T mckl::const_sqrt_2 ( )
inlinenoexcept

\(\sqrt{2}\)

Definition at line 260 of file constants.hpp.

◆ const_sqrt_3()

template<typename T >
constexpr T mckl::const_sqrt_3 ( )
inlinenoexcept

\(\sqrt{3}\)

Definition at line 264 of file constants.hpp.

◆ const_sqrt_5()

template<typename T >
constexpr T mckl::const_sqrt_5 ( )
inlinenoexcept

\(\sqrt{5}\)

Definition at line 268 of file constants.hpp.

◆ const_sqrt_e()

template<typename T >
constexpr T mckl::const_sqrt_e ( )
inlinenoexcept

\(\sqrt{e}\)

Definition at line 251 of file constants.hpp.

◆ const_sqrt_e_inv()

template<typename T >
constexpr T mckl::const_sqrt_e_inv ( )
inlinenoexcept

\(\sqrt{1/e}\)

Definition at line 256 of file constants.hpp.

◆ const_sqrt_pi()

template<typename T >
constexpr T mckl::const_sqrt_pi ( )
inlinenoexcept

\(\sqrt{\pi}\)

Definition at line 151 of file constants.hpp.

◆ const_sqrt_pi_2()

template<typename T >
constexpr T mckl::const_sqrt_pi_2 ( )
inlinenoexcept

\(\sqrt{2\pi}\)

Definition at line 156 of file constants.hpp.

◆ const_sqrt_pi_2by3()

template<typename T >
constexpr T mckl::const_sqrt_pi_2by3 ( )
inlinenoexcept

\(\sqrt{(2/3)\pi}\)

Definition at line 186 of file constants.hpp.

◆ const_sqrt_pi_3by4()

template<typename T >
constexpr T mckl::const_sqrt_pi_3by4 ( )
inlinenoexcept

\(\sqrt{(3/4)\pi/}\)

Definition at line 191 of file constants.hpp.

◆ const_sqrt_pi_4by3()

template<typename T >
constexpr T mckl::const_sqrt_pi_4by3 ( )
inlinenoexcept

\(\sqrt{(4/3)\pi}\)

Definition at line 196 of file constants.hpp.

◆ const_sqrt_pi_by2()

template<typename T >
constexpr T mckl::const_sqrt_pi_by2 ( )
inlinenoexcept

\(\sqrt{\pi/2}\)

Definition at line 166 of file constants.hpp.

◆ const_sqrt_pi_by3()

template<typename T >
constexpr T mckl::const_sqrt_pi_by3 ( )
inlinenoexcept

\(\sqrt{\pi/3}\)

Definition at line 171 of file constants.hpp.

◆ const_sqrt_pi_by4()

template<typename T >
constexpr T mckl::const_sqrt_pi_by4 ( )
inlinenoexcept

\(\sqrt{\pi/4}\)

Definition at line 176 of file constants.hpp.

◆ const_sqrt_pi_by6()

template<typename T >
constexpr T mckl::const_sqrt_pi_by6 ( )
inlinenoexcept

\(\sqrt{\pi/6}\)

Definition at line 181 of file constants.hpp.

◆ const_sqrt_pi_inv()

template<typename T >
constexpr T mckl::const_sqrt_pi_inv ( )
inlinenoexcept

\(\sqrt{1/\pi}\)

Definition at line 161 of file constants.hpp.

◆ const_zero()

template<typename T >
constexpr T mckl::const_zero ( )
inline

Zero.

Definition at line 92 of file constants.hpp.