← Back to team overview

dolfin team mailing list archive

Re: another function in *Vector ?

 

On Tue, Apr 29, 2008 at 05:12:39PM +0200, Kent-Andre Mardal wrote:
> 
> I'd like to be able to set all entries of a vector to a scalar value. 
> Shall I add this to the *Vector classes. 
> 
> Kent

Which scalar value?

If it's zero, then you can do

  x.zero();

which is already in the interfaces.

Otherwise, please add it. We had this until a few days ago (at least
in some of the implementations) but I removed it since I didn't think
we needed it.

Guess a good place to add it would be at the end just after the
assignment operator (to GenericVector).

-- 
Anders


Follow ups

References