Skip to content
Snippets Groups Projects
Commit 387bc17d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Merge branch 'vdgnguyen' into 'master'

operator equal for STensor33

See merge request gmsh/gmsh!44
parents 321d444f 4be997e2
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