I followed the UBLAS extensions here:
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Examples_-_Ho...
and I figured out how to extend functions like "exp" and "log" to act
on a vector.
But, those are functions of one argument. What I want is to be able to
apply a function with one fixed argument, like std::pow, to a vector
for some exponent exp, so I would like the code to look like:
vector<double> v( 100 );
double exponent = 2.1; // some exponent value
// ... fill v ...
std::cout << apply_to_all( v, functor::my_pow<double>(exponent) ) << std::endl;
std::cout << apply_to_all