Datatypes: Difference between revisions
Jump to navigation
Jump to search
(Link to grc/core/Constants.py) |
No edit summary |
||
Line 1: | Line 1: | ||
Gnuradio supports most primitive datatypes in C++, as well as complex and vector types grouping them together. | Gnuradio supports most primitive datatypes in C++, as well as complex and vector types grouping them together. | ||
; Complex | |||
The Complex data type generates 8 bytes for each complex data item; where the first 8 bytes are for the real number and the next 4 bytes are for the imaginary number. Both the real and the imaginary values are 4-byte floating point numbers. | |||
The types used in the companion app are enumerated in [https://github.com/gnuradio/gnuradio/blob/master/grc/core/Constants.py grc/core/Constants.py] in the sourcetree. | The types used in the companion app are enumerated in [https://github.com/gnuradio/gnuradio/blob/master/grc/core/Constants.py grc/core/Constants.py] in the sourcetree. | ||
; Related Links | |||
: [http://blog.sdr.hu/grblocks/types.html http://blog.sdr.hu/grblocks/types.html] |
Revision as of 05:45, 8 September 2022
Gnuradio supports most primitive datatypes in C++, as well as complex and vector types grouping them together.
- Complex
The Complex data type generates 8 bytes for each complex data item; where the first 8 bytes are for the real number and the next 4 bytes are for the imaginary number. Both the real and the imaginary values are 4-byte floating point numbers.
The types used in the companion app are enumerated in grc/core/Constants.py in the sourcetree.
- Related Links
- http://blog.sdr.hu/grblocks/types.html