##// END OF EJS Templates
Bug fixed in jroIO_usrp.py: Code should be a numpy.array
Bug fixed in jroIO_usrp.py: Code should be a numpy.array

File last commit:

r568:486c66596e4c
r686:70c29a3edf06
Show More
cfunctions.pyx
9 lines | 280 B | text/x-cython | CythonLexer
Miguel Valdez
Merge with branch schain_julia_drifts from rev. 803 to 995....
r568 # import numpy
Miguel Valdez
Se anadio el modulo cfunctions donde se agrego la funcion optimizada para decodificar
r301 cimport numpy
Miguel Valdez
Mensaje del tiempo ocupado en decodificar
r304 def decoder(numpy.ndarray[numpy.complex_t, ndim=2] fft_code, numpy.ndarray[numpy.complex_t, ndim=2] data):
Miguel Valdez
Se anadio el modulo cfunctions donde se agrego la funcion optimizada para decodificar
r301
fft_data = numpy.fft.fft(data, axis=1)
conv = fft_data*fft_code
data = numpy.fft.ifft(conv, axis=1)
return data