From e262dc567b10e17f2982afa2d843993edfb50c2b Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Fri, 12 Aug 2005 17:17:09 +0000 Subject: [PATCH] FIX container assign resize without presere [SVN r30550] --- include/boost/numeric/ublas/matrix_sparse.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/numeric/ublas/matrix_sparse.hpp b/include/boost/numeric/ublas/matrix_sparse.hpp index 167db1f5..b30e6648 100644 --- a/include/boost/numeric/ublas/matrix_sparse.hpp +++ b/include/boost/numeric/ublas/matrix_sparse.hpp @@ -431,7 +431,7 @@ namespace boost { namespace numeric { namespace ublas { template // Container assignment without temporary BOOST_UBLAS_INLINE mapped_matrix &operator = (const matrix_container &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 // Container assignment without temporary BOOST_UBLAS_INLINE compressed_matrix &operator = (const matrix_container &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 // Container assignment without temporary BOOST_UBLAS_INLINE coordinate_matrix &operator = (const matrix_container &m) { - resize (m ().size1 (), m ().size2 ()); + resize (m ().size1 (), m ().size2 (), false); assign (m); return *this; }