diff --git a/src/ndim/nvec.rs b/src/ndim/nvec.rs index ab46b936..de0d67ed 100644 --- a/src/ndim/nvec.rs +++ b/src/ndim/nvec.rs @@ -120,7 +120,7 @@ ScalarSub for NVec #[inline(always)] fn scalar_sub_inplace(&mut self, s: &N) - { self.scalar_sub_inplace(s) } + { self.at.scalar_sub_inplace(s) } } impl> Translation> for NVec @@ -143,11 +143,11 @@ Norm for NVec { #[inline(always)] fn sqnorm(&self) -> N - { self.dot(self) } + { self.at.sqnorm() } #[inline(always)] fn norm(&self) -> N - { self.sqnorm().sqrt() } + { self.at.norm() } #[inline(always)] fn normalized(&self) -> NVec