1 #ifndef INCLUDE_VOLK_COMPLEX_H
2 #define INCLUDE_VOLK_COMPLEX_H
25 typedef std::complex<int8_t>
lv_8sc_t;
32 template <
typename T>
inline std::complex<T>
lv_cmake(
const T &r,
const T &i){
33 return std::complex<T>(r, i);
36 template <
typename T>
inline typename T::value_type
lv_creal(
const T &x){
40 template <
typename T>
inline typename T::value_type
lv_cimag(
const T &x){
44 template <
typename T>
inline T
lv_conj(
const T &x){
59 #define lv_cmake(r, i) ((r) + _Complex_I*(i))
66 #define lv_creal(x) (__real__(x))
68 #define lv_cimag(x) (__imag__(x))
70 #define lv_conj(x) (~(x))
76 #define lv_creal(x) (creal(x))
78 #define lv_cimag(x) (cimag(x))
80 #define lv_conj(x) (conj(x))
long long complex lv_64sc_t
Definition: volk_complex.h:55
short complex lv_16sc_t
Definition: volk_complex.h:53
#define lv_conj(x)
Definition: volk_complex.h:80
#define lv_cmake(r, i)
Definition: volk_complex.h:59
long complex lv_32sc_t
Definition: volk_complex.h:54
double complex lv_64fc_t
Definition: volk_complex.h:57
float complex lv_32fc_t
Definition: volk_complex.h:56
#define lv_creal(x)
Definition: volk_complex.h:76
char complex lv_8sc_t
Provide typedefs and operators for all complex types in C and C++.
Definition: volk_complex.h:52
#define lv_cimag(x)
Definition: volk_complex.h:78