L1Norm

Trait L1Norm 

Source
pub trait L1Norm {
    type Output;

    // Required method
    fn l1_norm(&self) -> Self::Output;
}
Expand description

a trait for computing the L1 norm of a tensor or array

Required Associated Types§

Required Methods§

Source

fn l1_norm(&self) -> Self::Output

Implementations on Foreign Types§

Source§

impl<'a, A, S, D> L1Norm for &'a ArrayBase<S, D, A>
where A: 'static + Clone + Float, D: Dimension, S: Data<Elem = A>,

Source§

type Output = A

Source§

fn l1_norm(&self) -> <&'a ArrayBase<S, D, A> as L1Norm>::Output

Source§

impl<'a, A, S, D> L1Norm for &'a mut ArrayBase<S, D, A>
where A: 'static + Clone + Float, D: Dimension, S: Data<Elem = A>,

Source§

type Output = A

Source§

fn l1_norm(&self) -> <&'a mut ArrayBase<S, D, A> as L1Norm>::Output

Source§

impl<A, S, D> L1Norm for ArrayBase<S, D, A>
where A: 'static + Clone + Float, D: Dimension, S: Data<Elem = A>,

Source§

type Output = A

Source§

fn l1_norm(&self) -> <ArrayBase<S, D, A> as L1Norm>::Output

Implementors§