> Very curious to know how this performs. Since it's making use > of lots of > templates from the standard library, how much do they influence > efficiency? > How well does the compiler do its job optimising this? It is computing sine and cosine in the inner loop, so the performance can not be good, no matter how well the compiler optimizes it.