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
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@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/ublas