23template <
typename T,
size_t N>
27 for (
size_t n = 0; n < N; n++) {
38template <
typename T,
size_t N>
44 for (
size_t n = 1; n < N; n++) {
45 y = a[N - 1 - n] + y * x;
54template <
typename T,
size_t N>
61 const size_t M = (N + 1) / 2;
63 for (
size_t i = 0; i < M; i++) {
66 b[i] += a[2 * i + 1] * x;
T approxExp2Floor(T x, T *xf)
Deprecated alias of exp2Floor()
Definition approx.hpp:107
T approxExp2_taylor5(T x)
Deprecated alias of exp2_taylor5()
Definition approx.hpp:136
T polyEstrin(const T(&a)[N], T x)
Evaluates a polynomial with coefficients a[n] at x.
Definition approx.hpp:55
T polyDirect(const T(&a)[N], T x)
Evaluates a polynomial with coefficients a[n] at x.
Definition approx.hpp:24
T exp2_taylor5(T x)
Returns 2^x with at most 6e-06 relative error.
Definition approx.hpp:118
T exp2Floor(T x, T *xf)
Returns 2^floor(x).
T polyHorner(const T(&a)[N], T x)
Evaluates a polynomial with coefficients a[n] at x.
Definition approx.hpp:39
Vector< float, 4 > float_4
Definition Vector.hpp:340
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Wrapper for __m128 representing an aligned vector of 4 single-precision float values.
Definition Vector.hpp:34
static Vector cast(Vector< int32_t, 4 > a)
Definition Vector.hpp:163
Definition Vector.hpp:108