|
Ublas : |
From: Darin DeForest (darin_at_[hidden])
Date: 2005-08-11 17:08:26
This is generating a compiler error with the 1.33 rc2 boost code.
error C2039: 'size1' : is not a member of 'boost::numeric::ublas::matrix_container<C>'
with
[
C=boost::numeric::ublas::matrix<uint,boost::numeric::ublas::row_major,boost::numeric::ublas::array_adaptor<uint>>
]
This is similar to the previous error with vector and vector_container. I'm trying to perform matrix assignment, in this case the r-value is a class that derives from matrix.
I'm getting size1 and size2 are not members of a matrix_container for method
template<class C> // Container assignment without temporary
BOOST_UBLAS_INLINE
matrix &operator = (const matrix_container<C> &m) {
resize (m.size1 (), m.size2 ());
assign (m);
return *this;
}
Looking at both matrix_container and it's parent class matrix_expression I don't see methods size1 or size2 defined.
The work around is the same as before, i.e. use assign
m1.assign( m2 );