Skip to content

Constants

c_degtorad variable

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

degree to radian conversion factor

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

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

c_e variable

template <typename T, int m = 1, int d = 1>
constexpr inline 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 inline subtype<T> c_e = subtype<T>(2.718281828459045235360287471352662 * m / d)

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

c_infinity variable

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

infinity

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

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

c_neginfinity variable

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

-infinity

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

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

c_pi variable

template <typename T, int m = 1, int d = 1>
constexpr inline 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 inline subtype<T> c_pi = subtype<T>(3.1415926535897932384626433832795 * m / d)

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

c_qnan variable

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

Quiet NaN

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

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

c_radtodeg variable

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

radian to degree conversion factor

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

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

c_recip_pi variable

template <typename T, int m = 1, int d = 1>
constexpr inline 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 inline subtype<T> c_recip_pi = subtype<T>(0.31830988618379067153776752674503 * m / d)

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

c_sqr_pi variable

template <typename T, int m = 1, int d = 1>
constexpr inline 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 inline subtype<T> c_sqr_pi = subtype<T>(9.8696044010893586188344909998762 * m / d)

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


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