XCORE SDK
XCORE Software Development Kit
xs3_vect_f32.h
1 // Copyright 2020-2021 XMOS LIMITED.
2 // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3 
4 #pragma once
5 
6 #include "xs3_math_conf.h"
7 #include "xs3_math_types.h"
8 #include "xs3_util.h"
9 
10 #ifdef __XC__
11 extern "C" {
12 #endif
13 
14 
60 C_API
62  const float b[],
63  const unsigned length);
64 
114 C_API
116  int32_t a[],
117  const float b[],
118  const unsigned length,
119  const exponent_t a_exp);
120 
121 
165 C_API
167  float a[],
168  const int32_t b[],
169  const unsigned length,
170  const exponent_t b_exp);
171 
172 
194 C_API
195 float xs3_vect_f32_dot(
196  const float b[],
197  const float c[],
198  const unsigned length);
199 
200 
241 C_API
243  float x[],
244  const unsigned fft_length);
245 
278 C_API
280  complex_float_t X[],
281  const unsigned fft_length);
282 
283 
284 #ifdef __XC__
285 } //extern "C"
286 #endif
287 
int exponent_t
An exponent.
Definition: xs3_math_types.h:76
float xs3_vect_f32_dot(const float b[], const float c[], const unsigned length)
Compute the inner product of two IEEE754 float vectors.
Definition: xs3_vect_f32.c:15
complex_float_t * xs3_vect_f32_fft_forward(float x[], const unsigned fft_length)
Perform forward FFT on a vector of IEEE754 floats.
Definition: xs3_vect_f32_fft.c:13
float * xs3_vect_f32_fft_inverse(complex_float_t X[], const unsigned fft_length)
Perform inverse FFT on a vector of complex_float_t.
Definition: xs3_vect_f32_fft.c:36
void xs3_vect_s32_to_f32(float a[], const int32_t b[], const unsigned length, const exponent_t b_exp)
Convert a 32-bit BFP vector into a vector of IEEE754 single-precision floats.
Definition: xs3_vect_f32.c:58
void xs3_vect_f32_to_s32(int32_t a[], const float b[], const unsigned length, const exponent_t a_exp)
Convert a vector of IEEE754 single-precision floats into a 32-bit BFP vector.
Definition: xs3_vect_f32.c:44
exponent_t xs3_vect_f32_max_exponent(const float b[], const unsigned length)
Get the maximum (32-bit BFP) exponent from a vector of IEEE754 floats.
Definition: xs3_vect_f32.c:28
[bfp_complex_s16_t]
Definition: xs3_math_types.h:397