Boost logo

Ublas :

Subject: Re: [ublas] Product of two matrices is very slow
From: Maik Beckmann (beckmann.maik_at_[hidden])
Date: 2009-06-15 07:25:23


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