|
Ublas : |
From: Nico Galoppo (nico_at_[hidden])
Date: 2006-03-10 16:27:03
You can't multiply matrices with incompatible sizes?
ie. m1 has to have as many columns as m2 has rows.
--nico
Alion Sci wrote:
> I have two matrices, m1 and m2. So long as they are the same size
> (currently both are 2x2) then the following statement works just fine:
>
> cout << prod(m1, m2) << endl;
>
> However, when I change the size of either matrices I get the following
> error at compile time:
>
> Assertion failed in file /usr/include/boost/numeric/ublas/functional.hpp
> at line 1212:
> size1 == size2
> terminate called after throwing an instance of
> 'boost::numeric::ublas::bad_argument'
> what(): bad argument
> Aborted
>
>
> Does anyone know what I am doing wrong?
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
-- nico galoppo von borries @ address: 105 creel st., chapel hill comp. graphics phd. student @ north carolina, 27516 USA UNC, chapel hill @ phone: +1 (919) 962-1898 (office) @ +1 (919) 942-7609 (home) @ email: nico at cs dot unc dot edu @ homepage: http://www.cs.unc.edu/~nico --- debian linux :: vim powered