From 94f7d887981f0626f166f5645fa98115d4f9a478 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 01:17:53 -0400 Subject: everything compiles now, and fixed a major bug in the graph code --- lib/vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/vector.h') diff --git a/lib/vector.h b/lib/vector.h index d5ced03..beee1a7 100644 --- a/lib/vector.h +++ b/lib/vector.h @@ -81,10 +81,10 @@ class vector_t : public std::array { }; -template -double norm_squared(vector_t v) { +template +double norm_squared(vector_t v) { double tmp = 0; - for (double &x : v) { + for (T &x : v) { tmp += pow(x, 2); } -- cgit v1.2.3-70-g09d2