Valarray Problem

Benjamin Kosnik bkoz@cygnus.com
Sat Apr 1 00:00:00 GMT 2000


> 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.

-benjamin




More information about the Libstdc++ mailing list