Skip to content

Grid FFT

Sam Reeve edited this page Sep 12, 2024 · 2 revisions

Overview

Cabana::Grid enables computing fast Fourier transforms on grid data through an interface to the heFFTe library.

Implementation

Cabana_Grid_FastFourierTransform.hpp

Examples

Usage

    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

Clone this wiki locally