LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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