Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2005-10-06 15:04:43


On Thursday 06 Oct 2005 21:12, Neal Becker wrote:

> boost::numeric::ublas::zero_vector<double> v (10);
>
> std::copy (v.begin(), v.end(), std::ostream_iterator<double> (std::cout,
> " "));
>
> This will print NOTHING. Is that what you expect???

Yes!

It the same as iterating over:
    boost::numeric::ublas::mapped_vector<double> v (10);
Sparse Iterators iterate over the non-zero elements.

Michael