Skip to content
Snippets Groups Projects
Commit 4be997e2 authored by Van Dung NGUYEN's avatar Van Dung NGUYEN
Browse files

operator equal for STensor33

parent 321d444f
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,11 @@ class STensor33 { ...@@ -52,6 +52,11 @@ class STensor33 {
for (int i = 0; i < 27; i++) res._val[i] += other._val[i]; for (int i = 0; i < 27; i++) res._val[i] += other._val[i];
return res; 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) STensor33& operator += (const STensor33 &other)
{ {
for (int i = 0; i < 27; i++) _val[i] += other._val[i]; for (int i = 0; i < 27; i++) _val[i] += other._val[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment