Commit 2b687f9b authored by berenger-bramas's avatar berenger-bramas

Add an explicit cast from FComplexe to FReal

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@455 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 59939098
......@@ -174,6 +174,16 @@ public:
this->complex[0] += (other.complex[0] * another.complex[0]) - (other.complex[1] * another.complex[1]);
this->complex[1] += (other.complex[0] * another.complex[1]) + (other.complex[1] * another.complex[0]);
}
/** To cast to FReal */
static FReal* ToFReal(FComplexe*const array){
return reinterpret_cast<FReal*>(array);
}
/** To cast to FReal */
static const FReal* ToFReal(const FComplexe*const array){
return reinterpret_cast<const FReal*>(array);
}
};
/** Global operator Mul a complexe by another "c=c1*c2" */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment