From 3223b527890e3090184384374f45a964cffa254a Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 19:32:34 -0400 Subject: fixed several bugs --- lib/orthogonal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/orthogonal.h') diff --git a/lib/orthogonal.h b/lib/orthogonal.h index 34cd44e..85d0e11 100644 --- a/lib/orthogonal.h +++ b/lib/orthogonal.h @@ -24,6 +24,7 @@ class orthogonal_t : public std::array, q> { vector_t act(const vector_t & v) const { vector_t v_rot; + v_rot.fill(0); if (is_reflection) { double prod = 0; @@ -80,6 +81,7 @@ class orthogonal_t : public std::array, q> { return this->act(v); // reflections are their own inverse } else { vector_t v_rot; + v_rot.fill(0); for (q_t i = 0; i < q; i++) { for (q_t j = 0; j < q; j++) { -- cgit v1.2.3-70-g09d2