pub fn fft2_efficient<T>(
input: &ArrayView2<'_, T>,
shape: Option<(usize, usize)>,
mode: FftMode,
normalize: bool,
) -> FFTResult<Array2<Complex64>>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 arrayshape- Optional shape for the outputmode- Whether to compute forward or inverse FFTnormalize- Whether to normalize the result
§Returns
- Result with the processed 2D array
§Errors
Returns an error if the computation fails.