pub struct PlanKey {
pub rank: u32,
pub dims: [i32; 3],
pub kind: FftKind,
pub dtype: DType,
pub batch: i32,
pub many_layout: Option<u64>,
}Expand description
Plan-cache key. Captures everything cuFFT cares about for both
the simple cufftPlan{1,2,3}d constructors and the advanced
cufftPlanMany builder. dims[i] == 0 for i >= rank (unused
dimensions are zeroed for hashability).
Fields§
§rank: u32§dims: [i32; 3]§kind: FftKind§dtype: DType§batch: i32§many_layout: Option<u64>Some(seed) ⇒ this is a plan_many plan; the seed is a hash
of the embed/stride/dist tuples so two plan_manys with
different layouts hash distinctly. None ⇒ simple
cufftPlan{1,2,3}d.
Implementations§
Trait Implementations§
impl Copy for PlanKey
impl Eq for PlanKey
impl StructuralPartialEq for PlanKey
Auto Trait Implementations§
impl Freeze for PlanKey
impl RefUnwindSafe for PlanKey
impl Send for PlanKey
impl Sync for PlanKey
impl Unpin for PlanKey
impl UnsafeUnpin for PlanKey
impl UnwindSafe for PlanKey
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more