This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Valarray Problem
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: Valarray Problem
- From: "Marc A. Lepage" <mlepage at molecularmining dot com>
- Date: Mon, 07 Feb 2000 16:21:42 -0500
- Organization: Molecular Mining Corporation
- References: <Pine.SOL.3.91.1000207131132.27943C-100000@cse.cygnus.com>
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/