Trait L2Norm

Source
pub trait L2Norm {
    type Output;

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

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

Required Associated Types§

Required Methods§

Source

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

compute the L2 norm of the tensor or array

Implementations on Foreign Types§

Source§

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

Source§

type Output = A

Source§

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

Source§

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

Source§

type Output = A

Source§

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

Source§

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

Source§

type Output = A

Source§

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

Implementors§