[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Question: gr_float_to_complex
From: |
Brian Padalino |
Subject: |
Re: [Discuss-gnuradio] Question: gr_float_to_complex |
Date: |
Mon, 21 Jan 2008 22:14:25 -0500 |
On Jan 21, 2008 10:07 PM, Jason Anders <address@hidden> wrote:
>
> 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!
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