DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::detail::fft::plan::TwiddleSpan< T > Struct Template Reference

#include <FFT.h>

Static Public Member Functions

static constexpr size_t firstBlock (size_t n1, size_t block) noexcept
 
static constexpr size_t index (size_t stride, size_t block, size_t row, size_t p) noexcept
 

Public Attributes

const T * w
 

Detailed Description

template<typename T>
struct dspark::detail::fft::plan::TwiddleSpan< T >

Twiddles of one radix-4 pass: the factors w1, w2, w3 (re, im; rows 0 .. 5) of the groups p = 0 .. n/4 - 1, laid out so that a pass reads them as one stream. Kept as six arrays, the rows of a first pass sat n/4 values apart: a multiple of 4 KiB from 4096 double points on, where they met the four quarters of the input in the same sets of an 8-way level-1 cache.

Definition at line 147 of file FFT.h.

Member Function Documentation

◆ firstBlock()

template<typename T >
static constexpr size_t dspark::detail::fft::plan::TwiddleSpan< T >::firstBlock ( size_t  n1,
size_t  block 
)
inlinestaticconstexprnoexcept

Groups per block of the first pass's layout, for n/4 = n1 groups and the work layout's block.

Definition at line 153 of file FFT.h.

◆ index()

template<typename T >
static constexpr size_t dspark::detail::fft::plan::TwiddleSpan< T >::index ( size_t  stride,
size_t  block,
size_t  row,
size_t  p 
)
inlinestaticconstexprnoexcept

Where row row of group p sits. The first pass (stride 1), which loads vectors across p, keeps blocks of block groups, six rows of block values each; a strided pass, which broadcasts a group's factors, keeps the six of each group together.

Definition at line 162 of file FFT.h.

Member Data Documentation

◆ w

template<typename T >
const T* dspark::detail::fft::plan::TwiddleSpan< T >::w

Definition at line 149 of file FFT.h.


The documentation for this struct was generated from the following file: