2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-21 03:22:14 +00:00

FIX container assign resize without presere

[SVN r30550]
This commit is contained in:
Michael Stevens
2005-08-12 17:17:09 +00:00
parent f18a80fde4
commit e262dc567b

View File

@@ -431,7 +431,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class C> // Container assignment without temporary
BOOST_UBLAS_INLINE
mapped_matrix &operator = (const matrix_container<C> &m) {
resize (m ().size1 (), m ().size2 ());
resize (m ().size1 (), m ().size2 (), false);
assign (m);
return *this;
}
@@ -2843,7 +2843,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class C> // Container assignment without temporary
BOOST_UBLAS_INLINE
compressed_matrix &operator = (const matrix_container<C> &m) {
resize (m ().size1 (), m ().size2 ());
resize (m ().size1 (), m ().size2 (), false);
assign (m);
return *this;
}
@@ -4151,7 +4151,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class C> // Container assignment without temporary
BOOST_UBLAS_INLINE
coordinate_matrix &operator = (const matrix_container<C> &m) {
resize (m ().size1 (), m ().size2 ());
resize (m ().size1 (), m ().size2 (), false);
assign (m);
return *this;
}