pub fn veclen<'a, T>(inp: &'a ndarray::NdArray<T>, out: &mut ndarray::NdArray<T>)
where
    T: Copy + Default + std::ops::AddAssign + SquareRoot,
    &'a T: std::ops::Mul<Output = T>,
{
    veclen_squared(inp, out);
    for x in out.as_mut_slice() {
        *x = x.sqrt();
    }
}
/// Calculate the eucledian length of the vector(s). Matrices and Tensors are treated as a list of vectors.
Calculate the eucledian length of the vector(s). Matrices and Tensors are treated as a list of vectors.
Calculate the eucledian length of the vector ( s ) . Matrices and Tensors are treated as a list of vectors .
pub fn veclen<'a, T>(inp: &'a ndarray::NdArray<T>, out: &mut ndarray::NdArray<T>)
where
    T: Copy + Default + std::ops::AddAssign + SquareRoot,
    &'a T: std::ops::Mul<Output = T>,
{
    veclen_squared(inp, out);
    for x in out.as_mut_slice() {
        *x = x.sqrt();
    }
}
pub fn veclen < ' a , T > ( inp : & ' a ndarray :: NdArray < T > , out : & mut ndarray :: NdArray < T > ) where T : Copy + Default + std :: ops :: AddAssign + SquareRoot , & ' a T : std :: ops :: Mul < Output = T > , { veclen_squared ( inp , out ) ; for x in out . as_mut_slice ( ) { * x = x . sqrt ( ) ; } }
Calculate the eucledian length of the vector(s).
Calculate the eucledian length of the vector ( s ) .
inp
&'a ndarray::NdArray<T>
out
&mut ndarray::NdArray<T>