fft_streaming

Function fft_streaming 

Source
pub fn fft_streaming<T>(
    input: &[T],
    n: Option<usize>,
    mode: FftMode,
    chunk_size: Option<usize>,
) -> FFTResult<Vec<Complex64>>
where T: NumCast + Copy + Debug + 'static,
Expand description

Compute large array FFT with streaming to minimize memory usage

This function computes the FFT of a large array by processing it in chunks, which reduces the memory footprint for very large arrays.

§Arguments

  • input - Input array
  • n - Length of the transformed axis (optional)
  • mode - Whether to compute forward or inverse FFT
  • chunk_size - Size of chunks to process at once

§Returns

  • Result with the processed array

§Errors

Returns an error if the computation fails.