
Ublas : 
From: Riccardo Rossi (rrossi_at_[hidden])
Date: 20060713 04:53:21
On Wed, 20060712 at 08:25 0700, ender85 wrote:
> Hey guys, so brand spankin new to boost and BLAS for that matter. I just
> have a quick question, and ive tried to find a answer online, but it seems
> so trivial that its not on there.
>
> here it goes, how to i do simple matrix math operations once i have two
> matices...
>
> ie, im tryin to multiply two matrices right now, i have two of them defined
>
>
> matrix<double>m (3, 3)
> matrix<double>n (3, 3)
>
> what is m * n
>
> i havnt done lin alg in a while but im pretty sure you can multiply two
> matrices w/ the same amount of rows and cols
>
> thanks for you help guys
simply write
Matrix<double> result(3,3);
noalias(result) = prod(m,n);
the noalias is telling that result is different from m and n so you can
avoid the creationg of any temporary
greetings
Riccardo