On Tue, Jun 23, 2009 at 7:06 AM, <dariomt@gmail.com> wrote:
I'd like to be able to write things like

a = b + f(c)

where
a is a vector (or matrix)
b, c are vector (or matrix) expressions
f is a function to be applied to every element in c

Effective ublas has a great tutorial:
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Examples_-_How_To_Extend_UBLAS