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>
where A: Float + ScalarOperand, D: Dimension, S: Data<Elem = A>,

Source§

type Output = A

Source§

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

Source§

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

Source§

type Output = A

Source§

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

Source§

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

Source§

type Output = A

Source§

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

Implementors§