|
Ublas : |
Subject: Re: [ublas] Product of two matrices is very slow
From: zdespot (zdespot_at_[hidden])
Date: 2009-06-15 08:36:23
Maik Beckmann schrieb:
> zdespot schrieb am Montag 15 Juni 2009 um 13:07:
>
>
>> #include <boost/numeric/ublas/matrix.hpp>
>> using namespace boost;
>> using namespace boost::numeric;
>>
>> #define BOOST_UBLAS_CHECK_FALSE
>> #define NDEBUG
>> int main(int,char*[])
>> {
>> ublas::matrix<double> m1(600,100);
>> ublas::matrix<double> m2(100,100);
>> ublas::matrix<double> r(600,100);
>> noalias(r) = prod(m1,m2);
>> }
>>
>>
>
> You have to place the #define statements _before_ the #include statements.
>
> -- Maik
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: zdespot_at_[hidden]
>
>
Hi Maik
Thanks for the prompt answer. I changed the postion and rebuilt it, but
it is still slow.
Zoran