Trait NormSqr
hcomplex
pub trait NormSqr: Sized { type Output; pub fn norm_sqr(self) -> Self::Output; pub fn abs_sqr(self) -> Self::Output { ... } }
Square of L2 norm.
type Output
pub fn norm_sqr(self) -> Self::Output
Get square of the norm of the self.
self
pub fn abs_sqr(self) -> Self::Output
Alias to norm_sqr.
norm_sqr
impl NormSqr for i8
type Output = Self
pub fn norm_sqr(self) -> Self
impl NormSqr for i16
impl NormSqr for i32
impl NormSqr for i64
impl NormSqr for f32
impl NormSqr for f64
impl<T, U> NormSqr for Construct<T, U> where T: Add<Output = T>, U: NormSqr<Output = T>,
type Output = T
pub fn norm_sqr(self) -> T