discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] assertion error beyond 4096 output items


From: Activecat
Subject: Re: [Discuss-gnuradio] assertion error beyond 4096 output items
Date: Fri, 30 May 2014 12:54:43 +0800


On Thu, May 29, 2014 at 4:54 PM, Karan Talasila <address@hidden> wrote:
Vector_source_c takes in an argument numb which is a list that contains fft_size values. I will paste the qa code here(http://pastebin.com/da21Ww4B).


Something a little bit out of topic:
Part of your code at http://pastebin.com/da21Ww4B

        numb=list()
        for i in range (n):
                numb.append(complex(lst1[i],lst2[i]))


Above code is not "vectorized".
The vectorized version may look like:

        numb = numpy.complex64( lst1 )  +  1j * numpy.complex64( lst2 )


Vectorization is probably less critical in unittest, but should not be overlooked for blocked coded in python.
For info about vectorization, http://www.mathworks.com/help/matlab/matlab_prog/vectorization.html

reply via email to

[Prev in Thread] Current Thread [Next in Thread]