2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-19 14:52:17 +00:00

FIX sparse non_zeros is capacity, consistent with coordinate and compressed

[SVN r25806]
This commit is contained in:
Michael Stevens
2004-10-20 12:28:07 +00:00
parent 45229f8564
commit 79e5e9d383

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 {