Question: gr_float_to_complex

Hi again!

I have a question regarding the use of gr_float_to_complex block.
Unfortunately, Doxygen didn’t show the implementation of such a block.
What
I wanted to know is how gr_float_to_complex implements float to complex
conversion.

I could only guess that it treats the first number as the real part and
the
second number as the imaginary part and so on and so forth. Therefore, I
could only suppose that gr_float_to_complex treats input_items like
this:

input_items[0] => real # 1
input_items[1] => imag # 1
input_items[2] => real # 2
input_items[3] => imag # 2

Is my assumption correct? And by the way, is there an “operation manual”
for
the different GNU Radio blocks aside from the one created by Doxygen? I
just
wanted to know how to use the blocks. Thanks!

On Jan 21, 2008 10:07 PM, Jason A. [email protected] wrote:

could only suppose that gr_float_to_complex treats input_items like this:

input_items[0] => real # 1
input_items[1] => imag # 1
input_items[2] => real # 2
input_items[3] => imag # 2

Is my assumption correct? And by the way, is there an “operation manual” for
the different GNU Radio blocks aside from the one created by Doxygen? I just
wanted to know how to use the blocks. Thanks!

The beauty of open sourced code reveals:

http://gnuradio.org/trac/browser/gnuradio/trunk/gnuradio-core/src/lib/general/gr_float_to_complex.cc#L44

Most of the code in the trunk is pretty well documented. Feel free to
take a look.

Brian

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs