[...]
>> Apparently, Kent Budge regrets the adoption of his valarray<> proposal.
KB> I don't regret the internal representation of valarray<>. What I
KB> regret is the standardization of a class interface designed to solve a
KB> problem that has turned out not to be very important. As a container
KB> for numbers to be crunched, valarray<> is fine, though rather obvious,
KB> and somewhat redundant with vector<>. As a concrete data type,
Except that vector<> is not required to store in contiguous memory.
KB> valarray<> is full of operators that invite a programming style that is
KB> sure to flush a lot of caches a lot of the time.
which implies a good knowledge of its specification and related
functions. As I said in another post, valarray<> should not be treated
as a concrete data type.
-- Gabriel Dos Reis | École Normale Supérieure de Cachan INRIA, Unité de Recherche de | Centre de Mathématiques et de Leurs Sophia Antipolis | Applications Projet SAGA | Équipe de Géométrie