Vector Optimized Library of Kernels
2.2
Architecture-tuned implementations of math kernels
|
|
Go to the documentation of this file. 1 #ifndef INCLUDED_VOLK_COMPLEX_H
2 #define INCLUDED_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){
50 #if __STDC_VERSION__ >= 199901L
64 #define lv_cmake(r, i) ((r) + _Complex_I*(i))
71 #define lv_creal(x) (__real__(x))
73 #define lv_cimag(x) (__imag__(x))
75 #define lv_conj(x) (~(x))
83 #define lv_creal(x) (creal(x))
85 #define lv_cimag(x) (cimag(x))
87 #define lv_conj(x) (conj(x))
#define lv_cimag(x)
Definition: volk_complex.h:85
long long complex lv_64sc_t
Definition: volk_complex.h:60
short complex lv_16sc_t
Definition: volk_complex.h:58
#define lv_conj(x)
Definition: volk_complex.h:87
for i
Definition: volk_config_fixed.tmpl.h:25
#define lv_cmake(r, i)
Definition: volk_complex.h:64
long complex lv_32sc_t
Definition: volk_complex.h:59
float complex lv_32fc_t
Definition: volk_complex.h:61
double complex lv_64fc_t
Definition: volk_complex.h:62
#define lv_creal(x)
Definition: volk_complex.h:83
char complex lv_8sc_t
Provide typedefs and operators for all complex types in C and C++.
Definition: volk_complex.h:57