From ff6a46105d86e92753858c1b2aea8bcaf4575819 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 16 Apr 2010 10:13:32 -0400 Subject: * Refactoring of the class hierarchy: introduction of DenseDirectAccessBase, removal of extra _Base/_Options template parameters. * Introduction of strides-at-compile-time so for example the optimized code really knows when it needs to evaluate to a temporary * StorageKind / XprKind * Quaternion::setFromTwoVectors: use JacobiSVD instead of SVD * ComplexSchur: support the 1x1 case --- unsupported/Eigen/FFT | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'unsupported/Eigen/FFT') diff --git a/unsupported/Eigen/FFT b/unsupported/Eigen/FFT index 83f761028..045c44611 100644 --- a/unsupported/Eigen/FFT +++ b/unsupported/Eigen/FFT @@ -222,7 +222,7 @@ class FFT template inline - void fwd( MatrixBase & dst, const MatrixBase & src,int nfft=-1) + void fwd( DenseDirectAccessBase & dst, const DenseDirectAccessBase & src,int nfft=-1) { typedef typename ComplexDerived::Scalar dst_type; typedef typename InputDerived::Scalar src_type; @@ -242,7 +242,7 @@ class FFT else dst.derived().resize(nfft); - if ( src.stride() != 1 || src.size() < nfft ) { + if ( src.innerStride() != 1 || src.size() < nfft ) { Matrix tmp; if (src.size() inline - fft_fwd_proxy< MatrixBase, FFT > - fwd( const MatrixBase & src,int nfft=-1) + fft_fwd_proxy< DenseDirectAccessBase, FFT > + fwd( const DenseDirectAccessBase & src,int nfft=-1) { - return fft_fwd_proxy< MatrixBase ,FFT >( src, *this,nfft ); + return fft_fwd_proxy< DenseDirectAccessBase ,FFT >( src, *this,nfft ); } template inline - fft_inv_proxy< MatrixBase, FFT > - inv( const MatrixBase & src,int nfft=-1) + fft_inv_proxy< DenseDirectAccessBase, FFT > + inv( const DenseDirectAccessBase & src,int nfft=-1) { - return fft_inv_proxy< MatrixBase ,FFT >( src, *this,nfft ); + return fft_inv_proxy< DenseDirectAccessBase ,FFT >( src, *this,nfft ); } inline @@ -290,7 +290,7 @@ class FFT template inline - void inv( MatrixBase & dst, const MatrixBase & src, int nfft=-1) + void inv( DenseDirectAccessBase & dst, const DenseDirectAccessBase & src, int nfft=-1) { typedef typename ComplexDerived::Scalar src_type; typedef typename OutputDerived::Scalar dst_type; @@ -316,7 +316,7 @@ class FFT ? ( (nfft/2+1) - src.size() ) : ( nfft - src.size() ); - if ( src.stride() != 1 || resize_input ) { + if ( src.innerStride() != 1 || resize_input ) { // if the vector is strided, then we need to copy it to a packed temporary Matrix tmp; if ( resize_input ) { -- cgit v1.2.3