Skip to content
Snippets Groups Projects
Commit 46053600 authored by Van Dung Nguyen's avatar Van Dung Nguyen
Browse files

highorder homogenization

parent 48a2438a
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,11 @@ class STensor33 { ...@@ -49,6 +49,11 @@ class STensor33 {
for (int i = 0; i < 27; i++) _val[i] += other._val[i]; for (int i = 0; i < 27; i++) _val[i] += other._val[i];
return *this; return *this;
} }
STensor33& operator -= (const STensor33 &other)
{
for (int i = 0; i < 27; i++) _val[i] -= other._val[i];
return *this;
}
STensor33& operator *= (const double &other) STensor33& operator *= (const double &other)
{ {
for (int i = 0; i < 27; i++) _val[i] *= other; for (int i = 0; i < 27; i++) _val[i] *= other;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment