Closed tdmorello closed 2 years ago
Whoops, I see that adding gpu support is a part of #17. I will add that.
Note that the JAX dct
and idct
need to be somewhere inside a @jax.jit
decoration to be fast.
Just need to fix merge conflicts and it's good to go
This pull request adds a custom implementation of the inverse discrete cosine transform (a.k.a. dct type 3).
.tools._jax_idct.idct
) was verified againstscipy.fft.idct
, is n-dimensional, and contains anortho=norm
option for scalingtools.dct2d_tools
was updated to include this custom functionThis function should eventually be replaced by
jax.scipy.idct
whenever that becomes available.Closes #17