C++
C#
VB
JScript
All

External Function ifft


Copyright (C) 2005 IENT-RWTH Aachen

template<class G1,class G2> inline void ifft(Vector<G1> &XVector<G2> &Y)
template<class G> inline PROMOTE2(complex<float>,Vector<G>) ifft(const Vector<G> &X)
template<class G1,class G2> inline void ifft(const Matrix<G1> &XMatrix<G2> &Y)
template<class G> inline PROMOTE2(complex<float>,Matrix<G>) ifft(const Matrix<G> &X)

IFFT of a signal

Parameters

Y

The complex IFFT

X

The signal

Returns

Dense array of complex elements

Remarks

If Y contains real values, X is then supposed to be complex symetric and real_ifft is performed (with its constraints).

Example

DenseVector<complex<double> >::self X(4, 1);
DenseVector<complex<double> >::self Y;
Y=ifft(fft(X));

DenseVector<float>::self X(4, 1);
DenseVector<complex<float> >::self Y(X.size()/2+1);
half_real_fft(X,Y); // quicker than fft(X,Y)
ifft(Y,X);

See Also

fft, real_ifft