Commit 365bc7e9 authored by Backofen, Rainer's avatar Backofen, Rainer
Browse files

added / operator to Worldvector

parent baa63e82
......@@ -529,6 +529,14 @@ namespace AMDiS {
return v * d;
}
template<typename T>
WorldVector<T> operator/(const WorldVector<T>& v, double d)
{
WorldVector<T> result = v;
result = 1./d*v;
return result;
}
template<typename T>
WorldVector<T> operator+(const WorldVector<T>& v1,
const WorldVector<T>& v2)
......
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