Valarray Problem
Marc A. Lepage
mlepage@molecularmining.com
Sat Apr 1 00:00:00 GMT 2000
Benjamin Kosnik wrote:
>
> > double
> > euclideanDistance(const std::valarray<double>& kvfFrom,
> > const std::valarray<double>& kvfTo)
> > {
> > return sqrt(pow(kvfFrom - kvfTo, 2.0).sum());
> > }
>
> [snip]
>
> > I'm wondering if this is a bug in the 2.95.2 valarray, and if so,
> > if it exists in the libstdc++-v3 valarray?
>
> apparently not. The above compiles.
Thanks. I'll have to investigate further on my end.
--
Marc A. Lepage
Software Developer
Molecular Mining Corporation
http://www.molecularmining.com/
More information about the Libstdc++
mailing list