From b54cb6f4ebf513c4451f50d4c99e924800e50aac Mon Sep 17 00:00:00 2001 From: mchernigovskaya Date: Fri, 29 Apr 2022 19:29:21 +0200 Subject: [PATCH] Update Utils.h fix matrix assignment operator --- igor_src/Utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/igor_src/Utils.h b/igor_src/Utils.h index 23fbea39..ffc6a571 100644 --- a/igor_src/Utils.h +++ b/igor_src/Utils.h @@ -139,6 +139,7 @@ template struct Matrix { for(int i = 0 ; i != rows*cols ; i++){ this->array_p[i] = other.array_p[i]; } + return *this; } T& operator()(const int& i ,const int& j ){