2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-23 04:02:10 +00:00

FIX sparse non_zeros is capacity, consistent with coordinate and compressed

svn path=/trunk/boost/boost/numeric/ublas/; revision=25806
This commit is contained in:
Michael Stevens
2004-10-20 12:28:07 +00:00
parent 80648c5469
commit 8fc917e673

View File

@@ -284,7 +284,7 @@ namespace boost { namespace numeric { namespace ublas {
}
BOOST_UBLAS_INLINE
size_type non_zeros () const {
return data_.size ();
return detail::map_capacity (data ());
}
BOOST_UBLAS_INLINE
const array_type &data () const {