From: Gunter Winkler (guwi17_at_[hidden])
Date: 2005-06-08 15:51:46
Am Mittwoch, 8. Juni 2005 10:43 schrieb Thomas Lemaire:
> Dear list,
> Could a method clear() be added to vector and matrix range ? and by
> the way other proxies ? I haven't plunged into the details so my
> request may be non-sense... for now I assign a zero_matrix or
> zero_vector to the range which is fine.
We discussed this already and decided not to provide such a function.
The reasons are:
1. clear() may be misleading, because it could mean "set all values to
zero" (linear algebra view) or "set size to zero" (STL view)
2. there is already a good (=readable) way to zero a matrix: assign the
3. Its easy to create a free function set_to_zero() that fills a matrix