How can I map a function to every element of a vector in uBLAS (like Map[] in Mathematica)?
For example; I want to take the sin()
of all the elements of a uBLAS vector. Is there an optimized way in Boost, GSL, or any other numerical libraries to do this instead of simply looping through the elements of the vector?
Also, how would I perform other advanced operations on the uBLAS vectors such as rotating, deleting duplicates, or padding with zeros, etc?