VCV Rack API v2
Loading...
Searching...
No Matches
approx.hpp File Reference
#include <dsp/common.hpp>
Include dependency graph for approx.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  rack
 Root namespace for the Rack API.
 
namespace  rack::dsp
 Digital signal processing routines and classes.
 

Functions

template<typename T , size_t N>
rack::dsp::polyDirect (const T(&a)[N], T x)
 Evaluates a polynomial with coefficients a[n] at x.
 
template<typename T , size_t N>
rack::dsp::polyHorner (const T(&a)[N], T x)
 Evaluates a polynomial with coefficients a[n] at x.
 
template<typename T , size_t N>
rack::dsp::polyEstrin (const T(&a)[N], T x)
 Evaluates a polynomial with coefficients a[n] at x.
 
template<typename T >
rack::dsp::exp2Floor (T x, T *xf)
 Returns 2^floor(x).
 
template<>
float rack::dsp::exp2Floor (float x, float *xf)
 
template<>
simd::float_4 rack::dsp::exp2Floor (simd::float_4 x, simd::float_4 *xf)
 
template<typename T >
rack::dsp::approxExp2Floor (T x, T *xf)
 Deprecated alias of exp2Floor()
 
template<typename T >
rack::dsp::exp2_taylor5 (T x)
 Returns 2^x with at most 6e-06 relative error.
 
template<typename T >
rack::dsp::approxExp2_taylor5 (T x)
 Deprecated alias of exp2_taylor5()