fft2_efficient

Function fft2_efficient 

Source
pub fn fft2_efficient<T>(
    input: &ArrayView2<'_, T>,
    shape: Option<(usize, usize)>,
    mode: FftMode,
    normalize: bool,
) -> FFTResult<Array2<Complex64>>
where T: NumCast + Copy + Debug + 'static,
Expand description

Computes 2D FFT with memory efficiency in mind

This function performs a 2D FFT with optimized memory usage, which is particularly beneficial for large arrays.

§Arguments

  • input - Input 2D array
  • shape - Optional shape for the output
  • mode - Whether to compute forward or inverse FFT
  • normalize - Whether to normalize the result

§Returns

  • Result with the processed 2D array

§Errors

Returns an error if the computation fails.