C++ has had the
std::valarray class since the C++98 standard. It is meant to facilitate numerical computations, providing the sort of operations one would expect of a class implementing the mathematical concept of a vector space (with minor oddities like
operator==, which returns a vector of booleans instead of a single
Yet, I don't see that class widely used, either as a standalone or as the basis for more sophisticated implementations of vectors. What is the community's opinion on this class? What is the experience we as a community have with it, both positive and negative?