Boost logo

Ublas :

Subject: Re: [ublas] Why no element-wise multiply, divide?
From: Jesse Manning (manning.jesse_at_[hidden])
Date: 2009-01-20 17:47:24


ublas has free functions named element_prod and element_div that will
multiply or divide a vector element-wise and return the resultant.

example:
ublas::vector w = ublas::element_prod(u, v);
ublas::vector z = ublas::element_div(u, v);

you can read here for more information on the operations supported:
http://www.boost.org/doc/libs/1_37_0/libs/numeric/ublas/doc/operations_overview.htm

Jesse

On Tue, Jan 20, 2009 at 1:22 PM, Neal Becker <ndbecker2_at_[hidden]> wrote:

> I noticed that ublas seems to lack operations such as:
>
> element-wise vector * vector
> vector /= vector
>
> Any reason for this lack?
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>