Template Function ADS::dct(T *, std::size_t, unsigned)
Defined in File FFT.h
Function Documentation
-
template<class T>
inline void ADS::dct(T *x, std::size_t n, unsigned type) the transform of the cosines of type 1 to 4 of the n real numbers of x in place, as those of FFTW (REDFT00, REDFT10, REDFT01, REDFT11), with no normalization: the type 3 is the inverse of the type 2, and the type 4 of itself, times 2 n (2 ( n - 1 ) for the type 1)
- Pre:
1 <= type <= 4, and n != 1 for the type 1