Loading...
Searching...
No Matches
volk_32f_expfast_32f

Overview

Computes exp of input vector and stores results in output vector. This uses a fast exp approximation with a maximum 7% error.

Dispatcher Prototype

void volk_32f_expfast_32f(float* bVector, const float* aVector, unsigned int
num_points)

Inputs

- aVector: Input vector of floats.
- num_points: The number of data points.

Outputs

- bVector: The output vector.

Example

int N = 10;
unsigned int alignment = volk_get_alignment();
float* in = (float*)volk_malloc(sizeof(float)*N, alignment);
float* out = (float*)volk_malloc(sizeof(float)*N, alignment);
for(unsigned int ii = 0; ii < N; ++ii){
in[ii] = std::log((float)ii);
}
volk_32f_expfast_32f(out, in, N);
for(unsigned int ii = 0; ii < N; ++ii){
printf("out(%i) = %f\n", ii, out[ii]);
}
volk_free(in);
volk_free(out);