[SciPy-dev] DCT naming conventions ?

Stéfan van der Walt stefan@sun.ac...
Sun Jan 18 09:25:42 CST 2009


2009/1/18 David Cournapeau <david@ar.media.kyoto-u.ac.jp>:
>    I needed DCT transforms, so I finished implementing them in scipy
> (both single and double prec):
>
> http://projects.scipy.org/scipy/scipy/browser/trunk/scipy/fftpack/realtransforms.py
>
>    - dct3 and dct2 are inverse from each other (compared to dct/idct
> notation of matlab; dct2(x, norm=ortho) is the same as matlab dct(x),
> and dct3(x, norm='ortho') is the same as matlab idct.

While this naming is accurate, it is confusing in relation to the
other FFT functions.  I prefer "dct" and "idct".

Cheers
Stéfan


More information about the Scipy-dev mailing list