Boost logo

Ublas :

From: Georg Baum (Georg.Baum_at_[hidden])
Date: 2007-09-25 03:28:25

Am Dienstag 25 September 2007 09:00 schrieb Peter Schmitteckert:

> Well, there is no guarantee that a matrix gets initialized to zero.

You are right.

> (Or is a guarantee introduced recently?)

Fortunately not. Unfortunately despite the missing guarantee its is in
practice quite often zero, so that it is easy to forget a clear() :-(
In this case I simply confused ublas clear() with std::vector::clear()
(which resizes to zero).