#[repr(u32)]pub enum NormType {
VECTOR_1 = 0,
VECTOR_INF = 1,
VECTOR_2 = 2,
VECTOR_P = 3,
MATRIX_1 = 4,
MATRIX_INF = 5,
MATRIX_2 = 6,
MATRIX_L_PQ = 7,
}Expand description
Norm type
Variants§
VECTOR_1 = 0
Treats input as a vector and return sum of absolute values
VECTOR_INF = 1
Treats input as vector and return max of absolute values
VECTOR_2 = 2
Treats input as vector and returns euclidean norm
VECTOR_P = 3
Treats input as vector and returns the p-norm
MATRIX_1 = 4
Return the max of column sums
MATRIX_INF = 5
Return the max of row sums
MATRIX_2 = 6
Returns the max singular value (Currently not supported)
MATRIX_L_PQ = 7
Returns Lpq-norm
Trait Implementations§
impl Copy for NormType
impl StructuralPartialEq for NormType
Auto Trait Implementations§
impl Freeze for NormType
impl RefUnwindSafe for NormType
impl Send for NormType
impl Sync for NormType
impl Unpin for NormType
impl UnwindSafe for NormType
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