26 #if !defined(_SPANDSP_COMPLEX_VECTOR_INT_H_)
27 #define _SPANDSP_COMPLEX_VECTOR_INT_H_
29 #if defined(__cplusplus)
36 memcpy(z, x, n*
sizeof(z[0]));
42 memcpy(z, x, n*
sizeof(z[0]));
48 memcpy(z, x, n*
sizeof(z[0]));
52 static __inline__
void cvec_zeroi(
complexi_t z[],
int n)
54 memset(z, 0, n*
sizeof(z[0]));
58 static __inline__
void cvec_zeroi16(
complexi16_t z[],
int n)
60 memset(z, 0, n*
sizeof(z[0]));
64 static __inline__
void cvec_zeroi32(
complexi32_t z[],
int n)
66 memset(z, 0, n*
sizeof(z[0]));
74 for (i = 0; i < n; i++)
83 for (i = 0; i < n; i++)
92 for (i = 0; i < n; i++)
124 #if defined(__cplusplus)
complexf_t cvec_dot_prodf(const complexf_t x[], const complexf_t y[], int n)
Find the dot product of two complex float vectors.
Definition: complex_vector_float.c:126
complexi32_t cvec_circular_dot_prodi16(const complexi16_t x[], const complexi16_t y[], int n, int pos)
Find the dot product of two complex int16_t vectors, where the first is a circular buffer with an off...
Definition: complex_vector_int.c:83
complexi32_t cvec_dot_prodi32(const complexi32_t x[], const complexi32_t y[], int n)
Find the dot product of two complex int32_t vectors.
Definition: complex_vector_int.c:68
float im
Imaginary part.
Definition: complex.h:47
complexi32_t cvec_dot_prodi16(const complexi16_t x[], const complexi16_t y[], int n)
Find the dot product of two complex int16_t vectors.
Definition: complex_vector_int.c:53
int32_t im
Imaginary part.
Definition: complex.h:104
int32_t re
Real part.
Definition: complex.h:102
int16_t im
Imaginary part.
Definition: complex.h:93
float re
Real part.
Definition: complex.h:45
int16_t re
Real part.
Definition: complex.h:91