pub struct FftPlans<T: FftNum = f32> { /* private fields */ }Expand description
Cached FFT plans for a fixed (nrows, ncols) image size.
rustfft/realfft plans are Arc<dyn …> and Send + Sync, so a single
FftPlans can be built once per cube and shared by reference across the
rayon workers that convolve channels in parallel — each call brings its own
scratch, so only the (immutable) plans are shared. Building plans is the
expensive part of a transform; reusing them avoids re-planning on every
channel.
Implementations§
Auto Trait Implementations§
impl<T = f32> !RefUnwindSafe for FftPlans<T>
impl<T = f32> !UnwindSafe for FftPlans<T>
impl<T> Freeze for FftPlans<T>
impl<T> Send for FftPlans<T>
impl<T> Sync for FftPlans<T>
impl<T> Unpin for FftPlans<T>
impl<T> UnsafeUnpin for FftPlans<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more