Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2005-06-29 16:26:56


Hallo,

currently it is not possible to call index1() or index2() of a matrix
iterator if the iterator is at the end. But is this really necessary?

Why shouldn't I be able to access iterator1.index2() if this iterator is
at the end of the column? The column index is independent of the
current position. Most (all?) iterators store this index anyway.

The implementation is quite easy: We have to drop the

BOOST_UBLAS_CHECK (
  *this != (*this) ().find1 (0, (*this) ().size1 (), j_), bad_index ()
);

mfg
Gunter