Index: matrix_sparse.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/numeric/ublas/matrix_sparse.hpp,v retrieving revision 1.56 diff -u -r1.56 matrix_sparse.hpp --- matrix_sparse.hpp 31 Jan 2005 15:14:24 -0000 1.56 +++ matrix_sparse.hpp 10 Mar 2005 14:57:17 -0000 @@ -2479,7 +2479,7 @@ typedef typename IA::value_type size_type; // size_type for the data arrays. typedef typename IA::size_type array_size_type; - // FIXME difference type for sprase storage iterators should it be in the container? + // FIXME difference type for sparse storage iterators should it be in the container? typedef typename IA::difference_type difference_type; typedef T value_type; typedef const T &const_reference; @@ -2598,6 +2598,13 @@ value_array_type &value_data () { return value_data_; } + BOOST_UBLAS_INLINE + void complete_index1_data () const { + while (filled1_ <= size1_) { + const_cast(this)->index1_data_ [filled1_] = k_based (filled2_); + ++ const_cast(this)->filled1_; + } + } // Resizing private: