Enum NormKind
pub enum NormKind {
Fro,
Nuclear,
Spectral,
L1,
Inf,
Lp(f64),
}Expand description
Norm kind for crate::norm.
§Examples
use tenferro_linalg::NormKind;
let fro = NormKind::Fro;
let lp = NormKind::Lp(3.0);
assert!(matches!(fro, NormKind::Fro));
assert!(matches!(lp, NormKind::Lp(_)));Variants§
Fro
Frobenius norm or vector L2 norm.
Nuclear
Nuclear norm.
Spectral
Spectral norm.
L1
L1 norm.
Inf
Infinity norm.
Lp(f64)
General Lp norm.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NormKind
impl RefUnwindSafe for NormKind
impl Send for NormKind
impl Sync for NormKind
impl Unpin for NormKind
impl UnwindSafe for NormKind
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<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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