pub struct ParallelPlanner { /* private fields */ }
Expand description
Parallel planner that can create multiple plans simultaneously
Implementations§
Source§impl ParallelPlanner
impl ParallelPlanner
Sourcepub fn new(config: Option<ParallelPlanningConfig>) -> Self
pub fn new(config: Option<ParallelPlanningConfig>) -> Self
Create a new parallel planner
Sourcepub fn plan_fft(
&self,
shape: &[usize],
forward: bool,
backend: PlannerBackend,
) -> FFTResult<Arc<FftPlan>>
pub fn plan_fft( &self, shape: &[usize], forward: bool, backend: PlannerBackend, ) -> FFTResult<Arc<FftPlan>>
Create a single plan
Sourcepub fn plan_multiple(
&self,
specs: &[(Vec<usize>, bool, PlannerBackend)],
) -> FFTResult<Vec<ParallelPlanResult>>
pub fn plan_multiple( &self, specs: &[(Vec<usize>, bool, PlannerBackend)], ) -> FFTResult<Vec<ParallelPlanResult>>
Create multiple plans in parallel
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clear the plan cache
Sourcepub fn save_plans(&self) -> FFTResult<()>
pub fn save_plans(&self) -> FFTResult<()>
Save plans to disk
Auto Trait Implementations§
impl Freeze for ParallelPlanner
impl RefUnwindSafe for ParallelPlanner
impl Send for ParallelPlanner
impl Sync for ParallelPlanner
impl Unpin for ParallelPlanner
impl UnwindSafe for ParallelPlanner
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