Skip to main content

norm

Function norm 

Source
pub fn norm(
    a: &TracedTensor,
    ord: Option<f64>,
    dim: Option<&[usize]>,
    keepdim: bool,
) -> TracedTensor
Expand description

Vector or matrix norm.

This currently covers Frobenius norms, p-norms, and ±inf reductions.

§Examples

let value = tenferro::norm(&a, None, None, false);