From 870f4b804bdbad591e5546b79d3eb8bcd6a1b766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 23 Jun 2013 20:16:15 +0000 Subject: [PATCH] Fix some infinite recursion on nvec. --- src/ndim/nvec.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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