pub enum Transform<A>where
A: Allocator,{
PaddingHadamard(PaddingHadamard<A>),
DoubleHadamard(DoubleHadamard<A>),
Null(NullTransform),
RandomRotation(RandomRotation),
}Variants§
PaddingHadamard(PaddingHadamard<A>)
DoubleHadamard(DoubleHadamard<A>)
Null(NullTransform)
RandomRotation(RandomRotation)
Available on crate feature
linalg only.Implementations§
Source§impl<A> Transform<A>where
A: Allocator,
impl<A> Transform<A>where
A: Allocator,
Sourcepub fn new(
transform_kind: TransformKind,
dim: NonZeroUsize,
rng: Option<&mut dyn RngCore>,
allocator: A,
) -> Result<Self, NewTransformError>
pub fn new( transform_kind: TransformKind, dim: NonZeroUsize, rng: Option<&mut dyn RngCore>, allocator: A, ) -> Result<Self, NewTransformError>
Construct a new Transform from a TransformKind, input dimension
and an optional rng (if needed).
Currently, rng should be supplied for the following transforms:
The NullTransform can be initialized without rng.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Transform<A>where
A: Freeze,
impl<A> RefUnwindSafe for Transform<A>where
A: RefUnwindSafe,
impl<A> Send for Transform<A>where
A: Send,
impl<A> Sync for Transform<A>where
A: Sync,
impl<A> Unpin for Transform<A>where
A: Unpin,
impl<A> UnsafeUnpin for Transform<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Transform<A>where
A: 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