pub enum NormOrd {
Default,
Fro,
Nuc,
Inf,
NegInf,
P(f64),
}Expand description
The kind of norm of norm (NumPy’s ord).
Variants§
Default
ord=None: the 2-norm of vectors, the Frobenius norm of matrices.
Fro
'fro': the Frobenius norm (matrices).
Nuc
'nuc': the sum of the singular values (matrices).
Inf
inf: the largest absolute value (vectors), the largest absolute
row sum (matrices).
NegInf
-inf: the smallest absolute value (vectors), the smallest absolute
row sum (matrices).
P(f64)
A number: sum(|x|^p)^(1/p) for vectors (0 counts the nonzero
elements); for matrices, 1 and -1 (the largest and smallest absolute
column sums) and 2 and -2 (the largest and smallest singular values).
Trait Implementations§
impl Copy for NormOrd
impl StructuralPartialEq for NormOrd
Auto Trait Implementations§
impl Freeze for NormOrd
impl RefUnwindSafe for NormOrd
impl Send for NormOrd
impl Sync for NormOrd
impl Unpin for NormOrd
impl UnsafeUnpin for NormOrd
impl UnwindSafe for NormOrd
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