pub struct Plan<T: Float> { /* private fields */ }Expand description
A plan for executing FFT transforms.
Plans are created once and can be executed multiple times. The planning process may measure different algorithms to find the fastest.
Implementations§
Source§impl<T: Float> Plan<T>
impl<T: Float> Plan<T>
Sourcepub fn dft_2d(
n0: usize,
n1: usize,
direction: Direction,
flags: Flags,
) -> Option<Plan2D<T>>
pub fn dft_2d( n0: usize, n1: usize, direction: Direction, flags: Flags, ) -> Option<Plan2D<T>>
Create a 2D complex-to-complex DFT plan.
Sourcepub fn dft_3d(
n0: usize,
n1: usize,
n2: usize,
direction: Direction,
flags: Flags,
) -> Option<Plan3D<T>>
pub fn dft_3d( n0: usize, n1: usize, n2: usize, direction: Direction, flags: Flags, ) -> Option<Plan3D<T>>
Create a 3D complex-to-complex DFT plan.
Sourcepub fn r2c_1d(n: usize, flags: Flags) -> Option<RealPlan<T>>
pub fn r2c_1d(n: usize, flags: Flags) -> Option<RealPlan<T>>
Create a 1D real-to-complex FFT plan.
Sourcepub fn c2r_1d(n: usize, flags: Flags) -> Option<RealPlan<T>>
pub fn c2r_1d(n: usize, flags: Flags) -> Option<RealPlan<T>>
Create a 1D complex-to-real FFT plan.
Sourcepub fn execute(&self, input: &[Complex<T>], output: &mut [Complex<T>])
pub fn execute(&self, input: &[Complex<T>], output: &mut [Complex<T>])
Execute the plan on the given input/output buffers.
§Panics
Panics if input or output buffer sizes don’t match the plan size.
Sourcepub fn execute_inplace(&self, data: &mut [Complex<T>])
pub fn execute_inplace(&self, data: &mut [Complex<T>])
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Plan<T>
impl<T> RefUnwindSafe for Plan<T>where
T: RefUnwindSafe,
impl<T> Send for Plan<T>
impl<T> Sync for Plan<T>
impl<T> Unpin for Plan<T>
impl<T> UnsafeUnpin for Plan<T>
impl<T> UnwindSafe for Plan<T>where
T: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more