Boost logo

Ublas :

From: Kresimir Fresl (fresl_at_[hidden])
Date: 2005-02-17 02:01:39


Michael Stevens wrote:

> I think this is a good way to go. If you like the = syntax you can define
> operator= (scalar_vector<double> v, double s)
> {
> v = scalar_vector<double> (v.size(), s);
> }
> A good compiler should turn this into efficient code.

Unfortunately, operator=() must be a member function.

fres