From 80513dfd59e6d63863b336f32b8753dd4eab46cc Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Wed, 23 Jun 2010 23:50:43 +0000 Subject: [PATCH] THIS IS YOUR BRAIN ON DRUGS --- fastlib/branches/fastlib-stl/fastlib/la/la.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlib/branches/fastlib-stl/fastlib/la/la.h b/fastlib/branches/fastlib-stl/fastlib/la/la.h index 024e588a70..5ee7b422f8 100644 --- a/fastlib/branches/fastlib-stl/fastlib/la/la.h +++ b/fastlib/branches/fastlib-stl/fastlib/la/la.h @@ -75,7 +75,7 @@ namespace la { double result = 0; for(int i = 0; i < x.n_elem; i++) - result += (x[0] - y[0]) * (x[0] - y[0]); + result += (x[i] - y[i]) * (x[i] - y[i]); return result; } /**