pub struct BatchInversion<P: PackedField> { /* private fields */ }Expand description
Reusable batch inversion context that owns its scratch buffers.
Reusing one instance across many same-size calls avoids reallocating on every call.
Implementations§
Source§impl<P: PackedField> BatchInversion<P>
impl<P: PackedField> BatchInversion<P>
Sourcepub fn invert_nonzero(&mut self, elements: &mut [P])
pub fn invert_nonzero(&mut self, elements: &mut [P])
Sourcepub fn invert_or_zero(&mut self, elements: &mut [P])
pub fn invert_or_zero(&mut self, elements: &mut [P])
Auto Trait Implementations§
impl<P> Freeze for BatchInversion<P>
impl<P> RefUnwindSafe for BatchInversion<P>where
P: RefUnwindSafe,
impl<P> Send for BatchInversion<P>
impl<P> Sync for BatchInversion<P>
impl<P> Unpin for BatchInversion<P>where
P: Unpin,
impl<P> UnsafeUnpin for BatchInversion<P>
impl<P> UnwindSafe for BatchInversion<P>where
P: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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