Boost logo

Ublas :

From: Peter Schmitteckert (peter_at_[hidden])
Date: 2005-08-26 09:20:29


Salut Michael,

On Fri, 26 Aug 2005, Michael Stevens wrote:

> Alternatively it may be possible to solve the problem by implementing uBLAS so
> the zero elements are not constructed in any algorithms. Using the operation
> Z = 0* A where 0* multiples elements of A by the scalar 0
> we can generate Z such that its assignment and additively conformant with A.

You can't use this to initialize a vector to zero,

since

 x = 0 * y

is undefined for an unitialized y, and if it's an array element
it could contain a NaN and 0 * Nan = Nan and not zero.

Best wishes,
Peter

_______________________________________

Dr. Peter Schmitteckert
TKM / CFN University of Karlsruhe
++49 721 608 3363