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

- fixed bug in compressed_matrix::(const_)iterator's decrement

[SVN r37205]
This commit is contained in:
Gunter Winkler
2007-03-16 21:23:13 +00:00
parent bee922f7e1
commit 2adb3b8127

View File

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