Chris@49: // Copyright (C) 2013 Conrad Sanderson Chris@49: // Copyright (C) 2013 NICTA (www.nicta.com.au) Chris@49: // Chris@49: // This Source Code Form is subject to the terms of the Mozilla Public Chris@49: // License, v. 2.0. If a copy of the MPL was not distributed with this Chris@49: // file, You can obtain one at http://mozilla.org/MPL/2.0/. Chris@49: Chris@49: Chris@49: //! \addtogroup fn_fft Chris@49: //! @{ Chris@49: Chris@49: Chris@49: Chris@49: // TODO: fft(real) -> complex [to be tested thoroughly] Chris@49: // TODO: fft(complex) -> complex [to be tested thoroughly] Chris@49: // TODO: ifft(complex) -> complex [to be tested thoroughly] Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: typename Chris@49: enable_if2 Chris@49: < Chris@49: (is_arma_type::value && is_real::value), Chris@49: const mtOp, T1, op_fft_real> Chris@49: >::result Chris@49: fft(const T1& A) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return mtOp, T1, op_fft_real>(A, uword(0), uword(1)); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: typename Chris@49: enable_if2 Chris@49: < Chris@49: (is_arma_type::value && is_real::value), Chris@49: const mtOp, T1, op_fft_real> Chris@49: >::result Chris@49: fft(const T1& A, const uword N) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return mtOp, T1, op_fft_real>(A, N, uword(0)); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: typename Chris@49: enable_if2 Chris@49: < Chris@49: (is_arma_type::value && is_complex_strict::value), Chris@49: const Op Chris@49: >::result Chris@49: fft(const T1& A) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return Op(A, uword(0), uword(1)); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: typename Chris@49: enable_if2 Chris@49: < Chris@49: (is_arma_type::value && is_complex_strict::value), Chris@49: const Op Chris@49: >::result Chris@49: fft(const T1& A, const uword N) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return Op(A, N, uword(0)); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: typename Chris@49: enable_if2 Chris@49: < Chris@49: (is_arma_type::value && is_complex_strict::value), Chris@49: const Op Chris@49: >::result Chris@49: ifft(const T1& A) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return Op(A, uword(0), uword(1)); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: typename Chris@49: enable_if2 Chris@49: < Chris@49: (is_arma_type::value && is_complex_strict::value), Chris@49: const Op Chris@49: >::result Chris@49: ifft(const T1& A, const uword N) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return Op(A, N, uword(0)); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: //! @}