From 1160baa61bad605cf8a1d583e8ae356a54a942df Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 16:18:40 -0400 Subject: many changes, including new spin spaces and groups and cleaning up core library code --- lib/vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/vector.h') diff --git a/lib/vector.h b/lib/vector.h index beee1a7..2f4077a 100644 --- a/lib/vector.h +++ b/lib/vector.h @@ -109,7 +109,7 @@ void write_magnetization(vector_t M, FILE *outfile) { } template -T dot(vector_t v1, vector_t v2) { +T dot(const vector_t & v1, const vector_t & v2) { T prod = 0; for (q_t i = 0; i < q; i++) { @@ -120,7 +120,7 @@ T dot(vector_t v1, vector_t v2) { } template -double H_vector(vector_t v1, T *H) { +double H_vector(const vector_t & v1, T *H) { vector_t H_vec(H); return (double)(dot (v1, H_vec)); } -- cgit v1.2.3-70-g09d2