2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-25 04:42:24 +00:00

FIX container assign resize without presere

This commit is contained in:
Michael Stevens
2005-08-12 17:17:09 +00:00
parent 3168bdca0a
commit 79f7fe92fe

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;
}