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

add -= operator

parent ea74526f
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,11 @@ class STensor43 {
for (int i = 0; i < 81; i++) _val[i] += other._val[i];
return *this;
}
STensor43& operator -= (const STensor43 &other)
{
for (int i = 0; i < 81; i++) _val[i] -= other._val[i];
return *this;
}
STensor43& operator *= (const double &other)
{
for (int i = 0; i < 81; i++) _val[i] *= other;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment