From 2adb3b8127b75dc7ee8bebde4aecc99fc61da40a Mon Sep 17 00:00:00 2001 From: Gunter Winkler Date: Fri, 16 Mar 2007 21:23:13 +0000 Subject: [PATCH] - fixed bug in compressed_matrix::(const_)iterator's decrement [SVN r37205] --- include/boost/numeric/ublas/matrix_sparse.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/numeric/ublas/matrix_sparse.hpp b/include/boost/numeric/ublas/matrix_sparse.hpp index 70f6648f..3d41eec4 100644 --- a/include/boost/numeric/ublas/matrix_sparse.hpp +++ b/include/boost/numeric/ublas/matrix_sparse.hpp @@ -3200,7 +3200,7 @@ namespace boost { namespace numeric { namespace ublas { if (rank_ == 1 && layout_type::fast_i ()) -- it_; else { - i_ = index1 () - 1; + --i_; if (rank_ == 1) *this = (*this) ().find1 (rank_, i_, j_, -1); } @@ -3352,7 +3352,7 @@ namespace boost { namespace numeric { namespace ublas { if (rank_ == 1 && layout_type::fast_i ()) -- it_; else { - i_ = index1 () - 1; + --i_; if (rank_ == 1) *this = (*this) ().find1 (rank_, i_, j_, -1); } @@ -3509,7 +3509,7 @@ namespace boost { namespace numeric { namespace ublas { if (rank_ == 1 && layout_type::fast_j ()) -- it_; else { - j_ = index2 () - 1; + --j_; if (rank_ == 1) *this = (*this) ().find2 (rank_, i_, j_, -1); } @@ -3661,7 +3661,7 @@ namespace boost { namespace numeric { namespace ublas { if (rank_ == 1 && layout_type::fast_j ()) -- it_; else { - j_ = index2 (); + --j_; if (rank_ == 1) *this = (*this) ().find2 (rank_, i_, j_, -1); }