Datatypes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
; Complex | ; Complex | ||
: The Complex data type generates 8 bytes for each complex data item; where the first | : The Complex data type generates 8 bytes for each complex data item; where the first 4 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. | ||
; Short | |||
: The Short data type generates 4 bytes for each short data item; where the first 2 bytes are for the real number (I) and the next 2 bytes are for the imaginary number (Q). | |||
; Related Links | ; Related Links | ||
: [http://blog.sdr.hu/grblocks/types.html http://blog.sdr.hu/grblocks/types.html] | : [http://blog.sdr.hu/grblocks/types.html http://blog.sdr.hu/grblocks/types.html] |
Latest revision as of 10:25, 24 February 2023
Gnuradio supports most primitive datatypes in C++, as well as complex and vector types grouping them together. The types used in the companion app are enumerated in grc/core/Constants.py in the sourcetree.
- Complex
- The Complex data type generates 8 bytes for each complex data item; where the first 4 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.
- Short
- The Short data type generates 4 bytes for each short data item; where the first 2 bytes are for the real number (I) and the next 2 bytes are for the imaginary number (Q).
- Related Links
- http://blog.sdr.hu/grblocks/types.html