Boost logo

Ublas :

From: Peter Schmitteckert (peter_at_[hidden])
Date: 2005-07-04 03:55:36


On Fri, 1 Jul 2005, Marc Duflot wrote:

> Why was the name clear() chosen for this function? One would expect
> clear() to erase all the elements (like std::vector) not to initialize them.

which actually is what happens in a sparse matrix container.
Erasing all elemnts means setting all to zero, since it
is always assumed that non-existing elements in sparse matrices
stand for zero elements.
(Not that I'm to happy with this, but that's how I remembet it).

Best wishes,