pub struct ParallelPlanND<T: Float, P: ThreadPool> { /* private fields */ }Expand description
A parallel plan for executing N-dimensional FFT transforms.
Uses a thread pool to parallelize fiber transforms along each dimension.
Implementations§
Source§impl<T: Float, P: ThreadPool> ParallelPlanND<T, P>
impl<T: Float, P: ThreadPool> ParallelPlanND<T, P>
Sourcepub fn new(
dims: &[usize],
direction: Direction,
flags: Flags,
pool: P,
) -> Option<Self>
pub fn new( dims: &[usize], direction: Direction, flags: Flags, pool: P, ) -> Option<Self>
Create a parallel N-dimensional complex-to-complex DFT plan.
§Arguments
dims- Array of dimension sizes in row-major order (slowest varying first)direction- Forward or Backward transformflags- Planning flagspool- Thread pool for parallel execution
§Returns
A plan for row-major N-dimensional data.
Sourcepub fn execute(&self, input: &[Complex<T>], output: &mut [Complex<T>])
pub fn execute(&self, input: &[Complex<T>], output: &mut [Complex<T>])
Execute the N-dimensional FFT in parallel on the given input/output buffers.
Data is in row-major order (last dimension varies fastest).
§Panics
Panics if buffer sizes don’t match the total size.
Sourcepub fn execute_inplace(&self, data: &mut [Complex<T>])
pub fn execute_inplace(&self, data: &mut [Complex<T>])
Execute the N-dimensional FFT in-place in parallel.
§Panics
Panics if buffer size doesn’t match the total size.
Auto Trait Implementations§
impl<T, P> Freeze for ParallelPlanND<T, P>where
P: Freeze,
impl<T, P> RefUnwindSafe for ParallelPlanND<T, P>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for ParallelPlanND<T, P>
impl<T, P> Sync for ParallelPlanND<T, P>
impl<T, P> Unpin for ParallelPlanND<T, P>where
P: Unpin,
impl<T, P> UnsafeUnpin for ParallelPlanND<T, P>where
P: UnsafeUnpin,
impl<T, P> UnwindSafe for ParallelPlanND<T, P>where
P: UnwindSafe,
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