I\'m using the FFTW library to perform multi-dimensional type-II discrete cosine transforms (DCT\'s) and their inverse, the type-III DCT, in C++. When I perform each transfo