This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Valarray Problem


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]