Index: matrix.hpp =================================================================== --- matrix.hpp (revision 56104) +++ matrix.hpp (working copy) @@ -2446,11 +2446,13 @@ void resize (size_type size, bool preserve = true) { size1_ = size; size2_ = size; + size_common_ = ((std::min)(size1_, size2_)); } BOOST_UBLAS_INLINE void resize (size_type size1, size_type size2, bool /*preserve*/ = true) { size1_ = size1; size2_ = size2; + size_common_ = ((std::min)(size1_, size2_)); } // Element access