Skip to content

Constants

c_degtorad variable

template <typename T>
constexpr subtype<T> c_degtorad = c_pi<T, 1, 180>

degree to radian conversion factor

Source code
template <typename T>
constexpr subtype<T> c_degtorad = c_pi<T, 1, 180>

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L113

c_e variable

template <typename T, int m = 1, int d = 1>
constexpr subtype<T> c_e =
    subtype<T>(2.718281828459045235360287471352662 * m / d)

e, Euler's number

Source code
template <typename T, int m = 1, int d = 1>
constexpr subtype<T> c_e = subtype<T>(2.718281828459045235360287471352662 * m / d)

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L121

c_infinity variable

template <typename T>
constexpr subtype<T>
    c_infinity = std::numeric_limits<subtype<T>>::infinity()

infinity

Source code
template <typename T>
constexpr subtype<T> c_infinity = std::numeric_limits<subtype<T>>::infinity()

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L134

c_neginfinity variable

template <typename T>
constexpr subtype<T> c_neginfinity =
    -std::numeric_limits<subtype<T>>::infinity()

-infinity

Source code
template <typename T>
constexpr subtype<T> c_neginfinity = -std::numeric_limits<subtype<T>>::infinity()

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L138

c_pi variable

template <typename T, int m = 1, int d = 1>
constexpr subtype<T> c_pi =
    subtype<T>(3.1415926535897932384626433832795 * m / d)

π (pi) c_pi = 4pi c_pi = 3/4pi

Source code
template <typename T, int m = 1, int d = 1>
constexpr subtype<T> c_pi = subtype<T>(3.1415926535897932384626433832795 * m / d)

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L97

c_qnan variable

template <typename T>
constexpr subtype<T>
    c_qnan = std::numeric_limits<subtype<T>>::quiet_NaN()

Quiet NaN

Source code
template <typename T>
constexpr subtype<T> c_qnan = std::numeric_limits<subtype<T>>::quiet_NaN()

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L142

c_radtodeg variable

template <typename T>
constexpr subtype<T> c_radtodeg = c_recip_pi<T, 180>

radian to degree conversion factor

Source code
template <typename T>
constexpr subtype<T> c_radtodeg = c_recip_pi<T, 180>

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L117

c_recip_pi variable

template <typename T, int m = 1, int d = 1>
constexpr subtype<T> c_recip_pi =
    subtype<T>(0.31830988618379067153776752674503 * m / d)

1/π (1/pi) c_recip_pi 1/pi c_recip_pi 4/pi

Source code
template <typename T, int m = 1, int d = 1>
constexpr subtype<T> c_recip_pi = subtype<T>(0.31830988618379067153776752674503 * m / d)

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L109

c_sqr_pi variable

template <typename T, int m = 1, int d = 1>
constexpr subtype<T> c_sqr_pi =
    subtype<T>(9.8696044010893586188344909998762 * m / d)

π² (pi²) c_sqr_pi = 4pi² c_sqr_pi = 3/4pi²

Source code
template <typename T, int m = 1, int d = 1>
constexpr subtype<T> c_sqr_pi = subtype<T>(9.8696044010893586188344909998762 * m / d)

https://github.com/kfrlib/kfr/blob//include/kfr/simd/constants.hpp#L103


Auto-generated from sources, Revision , https://github.com/kfrlib/kfr/blob//include/kfr/