Boost logo

Ublas :

From: Stefan Tarrant (stefan.tarrant_at_[hidden])
Date: 2005-06-01 09:39:19


Oops, that was a slight oversight. I should have looked more closely because
I thought it was a bit too lopsided.

I re-ran the corrected code and the output is:

15.109 < for the valarray
21.812 < for the ublas vector

So the ublas vector seems to be a bit slower, but not the 9x to 80x that you
mentioned.

Stefan

-----Original Message-----
From: ublas-bounces_at_[hidden]
[mailto:ublas-bounces_at_[hidden]]On Behalf Of christopher diggins
Sent: Wednesday, June 01, 2005 11:54 AM
To: ublas mailing list
Subject: Re: [ublas] Performance concerns

Thank your for responding Stefan, but there is a small yet crucial bug in
your code. You forgot to size the ublas::vector

    boost::numeric::ublas::vector<RealType> v;

should be

    boost::numeric::ublas::vector<RealType> v(size);

Christopher Diggins
http://www.cdiggins.com

_______________________________________________
ublas mailing list
ublas_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/ublas