From: Joerg Walter (jhr.walter_at_[hidden])
Date: 2002-05-01 14:17:03
----- Original Message -----
From: "Toon Knapen" <toon.knapen_at_[hidden]>
Sent: Tuesday, April 30, 2002 6:09 PM
Subject: [boost] ublas: matrix clear() and operator=
> Currently, the matrices can be clear()-ed such that all elements are set
> 0. I would find it even more convenient to be able to use
> operator=(some_value_type) to assign a specific value to all the entries
> the matrix.
How would you define the semantics of such an assignment operator for sparse
> But I figure there's some good reason one has to use clear()
> instead of operator=() ?
Do you think, it would be worthy to add something like zero_vector<> and
zero_matrix<> to allow for syntactic sugar like m = zero_matrix<>()?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk