C++ valarray vs. vector
valarray is kind of an orphan that was born in the wrong place at the wrong time. It’s an attempt at optimization, fairly specifically for the machines that were used for heavy-duty math when it was written — specifically, vector processors like the Crays. For a vector processor, what you generally wanted to do was … Read more