From 4be997e27cea03662c011c6dbc19e80a53d96c15 Mon Sep 17 00:00:00 2001 From: Van Dung Nguyen <vdg.nguyen@gmail.com> Date: Tue, 31 Oct 2017 15:24:45 +0100 Subject: [PATCH] operator equal for STensor33 --- Solver/STensor33.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Solver/STensor33.h b/Solver/STensor33.h index bd01bdf8ad..3ca9506a6e 100644 --- a/Solver/STensor33.h +++ b/Solver/STensor33.h @@ -52,6 +52,11 @@ class STensor33 { for (int i = 0; i < 27; i++) res._val[i] += other._val[i]; return res; } + STensor33& operator = (const STensor33 &other) + { + for (int i = 0; i < 27; i++) _val[i] = other._val[i]; + return *this; + } STensor33& operator += (const STensor33 &other) { for (int i = 0; i < 27; i++) _val[i] += other._val[i]; -- GitLab