Commit 4e61455a authored by Florian Goth's avatar Florian Goth
Browse files

fix compilation

parent 0bee2b20
......@@ -51,13 +51,13 @@ template <typename T> class Cwise<std::valarray<std::complex<T> > >
inline static std::valarray<std::complex<T> > product(const std::valarray<std::complex<T> > & x, const std::valarray<std::complex<T> > & y)
{
std::valarray<std::complex<T> > ret(x);
for(std::valarray<std::complex<T> >::size_t i=0; i<ret.size(); i++) ret[i] = Cwise<std::complex<T> >::product(x[i],y[i]);
for(typename std::valarray<std::complex<T> >::size_t i=0; i<ret.size(); i++) ret[i] = Cwise<std::complex<T> >::product(x[i],y[i]);
return ret;
}
inline static std::valarray<std::complex<T> > sqrt(const std::valarray<std::complex<T> > & x)
{
std::valarray<std::complex<T> > ret(x);
for(std::valarray<std::complex<T> >::size_t i=0; i<ret.size(); i++) ret[i] = Cwise<std::complex<T> >::sqrt(x[i]);
for(typename std::valarray<std::complex<T> >::size_t i=0; i<ret.size(); i++) ret[i] = Cwise<std::complex<T> >::sqrt(x[i]);
return ret;
}
};
......
Supports Markdown
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