[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Question: Array of complex numbers as input
From: |
Jason Anders |
Subject: |
[Discuss-gnuradio] Question: Array of complex numbers as input |
Date: |
Sat, 19 Jan 2008 20:15:42 +0800 |
Hi again!
I am trying to make a signal processing block that uses an array of
complex numbers at its input. I was just wondering whether
&input_items can support this.
I was told that the &input_items are simply "plain old data." So if I
cannot pass an array of complex numbers as an input argument, is there
a way to process my input so that I can still get a stream of complex
numbers as input?
Thanks!
-------------------------------------------------------------------------------------------------
If my message isn't clear, here's a snippet of code to clarify things.
// In the "main" function
complex<float> ARRAY[10]; // 10 items of complex type
work(noutput_items, ARRAY, output_items); // would this be ILLEGAL?
// Inside the signal processing block
work(int noutput_items, gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
- [Discuss-gnuradio] Question: Array of complex numbers as input,
Jason Anders <=