Take a look on the vectorization suggestion on the wish list http://all-technology.com/eigenpolls/dwishlist/index.php?it=10 this notation lets you specify vector calculation in such a way that the compiler can optimize them and let them run on the GPU if that is preferred.