GNU Radio's MESA Package
scomplex.h
Go to the documentation of this file.
1 /*
2  * scomplex.h
3  *
4  * Copyright 2017, Michael Piscopo
5  *
6  */
7 
8 #ifndef LIB_SCOMPLEX_H_
9 #define LIB_SCOMPLEX_H_
10 
11 #include <complex>
12 #include <vector>
13 
14 // Common type definitions
15 typedef std::complex<float> SComplex;
16 typedef std::vector<std::complex<float>> ComplexVector;
17 
18 // This structure version is used in some places for optimization to get direct
19 // access to the values without having to make function calls to get/set.
20 struct ComplexStruct {
21  float real;
22  float imag;
23 };
24 
26 
27 #endif /* LIB_SCOMPLEX_H_ */
float imag
Definition: scomplex.h:22
Definition: scomplex.h:20
float real
Definition: scomplex.h:21
std::complex< float > SComplex
Definition: scomplex.h:15
std::vector< std::complex< float > > ComplexVector
Definition: scomplex.h:16