--
You received this message because you are subscribed to the Google Groups "Numba Public Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users+unsubscribe@continuum.io.
To post to this group, send email to numba...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/numba-users/5d6c279b-c197-4d4f-9255-996e50377a93%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
JeffLet me take a stab then... Are they any good intro sites or papers for pyculib?Thanks!
from pyculib.fft import fft
import numpy as np
data = np.load('gauss.npy')
out_pyculib = np.asarray(data, dtype = np.complex128)
fft(data, out_pyculib)
from numpy.fft import rfft2
from pyculib.fft import fftimport numpy as np
# setup datan = 64m = 32data = np.random.random((n, m))
# compute output size and allocateif m % 2: mout = m // 2else: mout = m // 2 + 1
out_pyculib = np.empty((n, mout), dtype=np.complex128)
bkup = np.copy(data)
# make the callfft(data, out_pyculib)
# assert data is not mutatednp.testing.assert_allclose(data, bkup)
# compute expectedexpected = rfft2(data)
# assert data is not mutatednp.testing.assert_allclose(data, bkup)
# assert result matchnp.testing.assert_allclose(out_pyculib, expected)