The
class template
valarray<T>
is a
one-dimensional smart array, with elements numbered sequentially from zero
. It is a representation of the mathematical concept
of an ordered set of values
. For convenience, an object of type
valarray<T> is referred
to as an “array” throughout the remainder of
[numarray]. The illusion of higher dimensionality
may be produced by the familiar idiom of computed indices, together
with the powerful subsetting capabilities provided
by the generalized subscript operators
.