MCPcopy Create free account
hub / github.com/Axect/Peroxide / norm

Method norm

src/complex/vector.rs:25–31  ·  view source on GitHub ↗
(&self, kind: Norm)

Source from the content-addressed store, hash-verified

23impl Normed for Complex<f64> {
24 type UnsignedScalar = f64;
25 fn norm(&self, kind: Norm) -> Self::UnsignedScalar {
26 match kind {
27 Norm::L1 => self.l1_norm(),
28 Norm::L2 => Complex::<f64>::norm(*self),
29 _ => unimplemented!(),
30 }
31 }
32
33 fn normalize(&self, kind: Norm) -> Self
34 where

Callers 1

normalizeMethod · 0.45

Calls 2

iterMethod · 0.80
sumMethod · 0.45

Tested by

no test coverage detected