c06eb calculates the discrete Fourier transform of a Hermitian sequence of complex data values. (No extra workspace required.)
Public Shared Sub c06eb ( _ x As Double(), _ n As Integer, _ <OutAttribute> ByRef ifail As Integer _ )
public: static void c06eb( array<double>^ x, int n, [OutAttribute] int% ifail )
- Type: array<System..::..Double>()An array of size [n]On entry: the sequence to be transformed stored in Hermitian form. If the data values are written as , and if x is declared with bounds in the method from which c06eb is called, then for , is contained in , and for , is contained in . (See also  in the C06 class Chapter Introduction and [Example].)
- Type: System..::..Int32On entry: , the number of data values. The largest prime factor of n must not exceed , and the total number of prime factors of n, counting repetitions, must not exceed .Constraint: .
Given a Hermitian sequence of complex data values (i.e., a sequence such that is real and is the complex conjugate of , for ), c06eb calculates their discrete Fourier transform defined by
(Note the scale factor of in this definition.) The transformed values are purely real (see also the C06 class).
To compute the inverse discrete Fourier transform defined by
this method should be preceded by a call of c06gb to form the complex conjugates of the .
Brigham E O (1974) The Fast Fourier Transform Prentice–Hall
Errors or warnings detected by the method:
- At least one of the prime factors of n is greater than .
- n has more than prime factors.
On entry, .
- An unexpected error has occurred in an internal call. Check all method calls and array dimensions. Seek expert help.
Some indication of accuracy can be obtained by performing a subsequent inverse transform and comparing the results with the original sequence (in exact arithmetic they would be identical).
The time taken is approximately proportional to , but also depends on the factorization of . c06eb is faster if the only prime factors of are , or ; and fastest of all if is a power of .
On the other hand, c06eb is particularly slow if has several unpaired prime factors, i.e., if the ‘square-free’ part of has several factors. For such values of , (C06FBF not in this release) (which requires an additional elements of workspace) is considerably faster.