LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Classes | Functions
Fourier Transforms

Fast fourier transforms using the FFTW library. More...

Classes

class  ndarray::FourierTransform< T, N >
 A wrapper for FFTW plans for fast Fourier transforms. More...
 

Functions

template<typename T , int N, int C>
void ndarray::shift (Vector< T, N > const &offset, Array< std::complex< T >, N, C > const &array, int const real_last_dim)
 Perform a Fourier-space translation transform. More...
 
template<typename T , int N, int C>
void ndarray::differentiate (int n, Array< std::complex< T >, N, C > const &array, int const real_last_dim)
 Numerically differentiate the array in Fourier-space in the given dimension. More...
 

Detailed Description

Fast fourier transforms using the FFTW library.

Function Documentation

template<typename T , int N, int C>
void ndarray::differentiate ( int  n,
Array< std::complex< T >, N, C > const &  array,
int const  real_last_dim 
)

Numerically differentiate the array in Fourier-space in the given dimension.

Definition at line 165 of file FourierOps.h.

169  {
170  detail::FourierOps<T,N>::differentiate(N-n, array.deep(), real_last_dim);
171 }
void differentiate(int n, Array< std::complex< T >, N, C > const &array, int const real_last_dim)
Numerically differentiate the array in Fourier-space in the given dimension.
Definition: FourierOps.h:165
template<typename T , int N, int C>
void ndarray::shift ( Vector< T, N > const &  offset,
Array< std::complex< T >, N, C > const &  array,
int const  real_last_dim 
)

Perform a Fourier-space translation transform.

Examples:
tunnelDs9.

Definition at line 146 of file FourierOps.h.

150  {
152  offset.begin(),
153  static_cast< std::complex<T> >(1),
154  array.deep(),
155  real_last_dim
156  );
157 }
void shift(Vector< T, N > const &offset, Array< std::complex< T >, N, C > const &array, int const real_last_dim)
Perform a Fourier-space translation transform.
Definition: FourierOps.h:146