Skip to content
Snippets Groups Projects
Commit 637a4223 authored by Éric Béchet's avatar Éric Béchet
Browse files

No commit message

No commit message
parent 09e1b710
No related branches found
No related tags found
No related merge requests found
......@@ -245,6 +245,15 @@ class STensor3 {
ithis.setMat(m);
return ithis;
}
STensor3 transpose () const
{
STensor3 ithis;
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
ithis(i,j) = (*this)(j,i);
return ithis;
}
STensor3 operator + (const STensor3 &other) const
{
STensor3 res(*this);
......
......@@ -84,12 +84,12 @@ class fullVector
_data = new scalar[_r];
_own_data = true;
if(resetValue)
setAll(0.);
setAll(scalar());
return true;
}
_r = r;
if(resetValue)
setAll(0.);
setAll(scalar());
return false;
}
void setAsProxy(const fullVector<scalar> &original, int r_start, int r)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment