pub struct FftPlan { /* private fields */ }
Expand description
Multidimensional FFT plan that handles different array shapes and layouts
Implementations§
Source§impl FftPlan
impl FftPlan
Sourcepub fn new(
shape: &[usize],
forward: bool,
planner: &mut FftPlanner<f64>,
backend: PlannerBackend,
) -> Self
pub fn new( shape: &[usize], forward: bool, planner: &mut FftPlanner<f64>, backend: PlannerBackend, ) -> Self
Create a new FFT plan for the given shape and direction
Sourcepub fn get_internal(&self) -> Arc<dyn Fft<f64>>
pub fn get_internal(&self) -> Arc<dyn Fft<f64>>
Get the internal rustfft plan
Sourcepub fn record_usage(&mut self)
pub fn record_usage(&mut self)
Record usage of this plan
Sourcepub fn is_compatible_with(&self, shape: &[usize]) -> bool
pub fn is_compatible_with(&self, shape: &[usize]) -> bool
Check if this plan is compatible with the given shape
Sourcepub fn metrics(&self) -> Option<&PlanMetrics>
pub fn metrics(&self) -> Option<&PlanMetrics>
Get plan metrics
Sourcepub fn set_metrics(&mut self, metrics: PlanMetrics)
pub fn set_metrics(&mut self, metrics: PlanMetrics)
Set plan metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FftPlan
impl !RefUnwindSafe for FftPlan
impl Send for FftPlan
impl Sync for FftPlan
impl Unpin for FftPlan
impl !UnwindSafe for FftPlan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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