Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2005-08-20 06:43:47


On Saturday 20 August 2005 04:35, Sashan Govender wrote:
> Hi
>
> I've recently upgraded to boost 1.33. The following code results in:
>
> m_Mass = bnu::zero_matrix<double>(m_Mass.size1(), m_Mass.size2());
>
> where m_Mass is of type bnu::matrix<double> results in the following
> compiler error:
>
> 'size1' : is not a member of 'boost::numeric::ublas::matrix_container<C>'
>
> I don't think this should error. I think that the matrix_container
> should define size1 and size2.

This is a nasty bug in 1.33.0 and reported in the ML in several contexts.
Workaround is as described now in

http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?action=edit&id=Release_Notes_UBLAS

The latest development code in Boost also fixes the problem.

Michael