|
Boost : |
From: Tarjei Knapstad (tarjeik_at_[hidden])
Date: 2002-08-06 12:06:21
On Tue, 2002-08-06 at 22:41, Toon Knapen wrote:
> Are there any component-wise operators available in ublas ?
> For instance, I would like to do a element-per-element multiplication of two
> ublas vectors.
>
To my knowledge Hadamar products (element-by-element multiplication) are
not part of the BLAS specification, which means you'd need to implement
it yourself. Shouldn't be too hard, have a look at matrix/vector_et.h.
-- Tarjei Knapstad
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk