pub enum SquareLatticeInitMethod<T: Scalar> {
Empty,
Uniform {
val: T,
},
RandomChoices {
choices: Vec<T>,
weights: Option<Vec<f64>>,
rng: RngConfig,
},
Values {
values: Vec<T>,
},
ShuffledValues {
values: Vec<T>,
rng: RngConfig,
},
SeededCenter {
val: T,
},
}Variants§
Empty
Fill every site with T::default().
Uniform
Fields
§
val: TRandomChoices
Independently sample choices using optional relative weights.
Values
Use explicit row-major values.
ShuffledValues
Use explicit row-major values after one unbiased seeded permutation.
SeededCenter
Fields
§
val: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SquareLatticeInitMethod<T>where
T: Freeze,
impl<T> RefUnwindSafe for SquareLatticeInitMethod<T>where
T: RefUnwindSafe,
impl<T> Send for SquareLatticeInitMethod<T>
impl<T> Sync for SquareLatticeInitMethod<T>
impl<T> Unpin for SquareLatticeInitMethod<T>where
T: Unpin,
impl<T> UnsafeUnpin for SquareLatticeInitMethod<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SquareLatticeInitMethod<T>where
T: 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> 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