-
Notifications
You must be signed in to change notification settings - Fork 50
Grid FFT
Sam Reeve edited this page Sep 12, 2024
·
2 revisions
Cabana::Grid enables computing fast Fourier transforms on grid data through an interface to the heFFTe library.
Cabana_Grid_FastFourierTransform.hpp
auto lhs = Cabana::Grid::createArray<double, memory_space>( "lhs", vector_layout );
Cabana::Grid::Experimental::FastFourierTransformParams params;
auto fft = Cabana::Grid::Experimental::createHeffteFastFourierTransform<
double, device_type>( *vector_layout, params );
fft->forward( *lhs, Cabana::Grid::Experimental::FFTScaleFull() );
fft->reverse( *lhs, Cabana::Grid::Experimental::FFTScaleNone() );
This is part of the Programming Guide series
Cabana - A Co-Designed Library for Exascale Particle Simulations