It seems that Valarrays should be quite useful in some problems due to the fact you can do entire operations on it in a single line. From what I've researched, while it is not optimized specially be any compiler, there is still no reason for it to be slower than a vector.
What are its downsides that seem to outweigh the convenience it provides?
I remember long debugging time with
valarray(n, 1)