Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
valarray
classes:
gslice
gslice_array
indirect_array
mask_array
slice
slice_array
valarray
global functions:
abs
acos
asin
atan
atan2
cos
cosh
exp
log
log10
pow
sin
sinh
sqrt
tan
tanh
valarray
valarray operators
valarray::valarray
valarray::~valarray
member functions:
valarray::apply
valarray::cshift
valarray::max
valarray::min
valarray::operator=
valarray::operator[]
valarray::resize
valarray::shift
valarray::size
valarray::sum


valarray

class template
<valarray>
template <class T> class valarray;

Valarray class

A valarray object is designed to hold an array of elements, and easily perform mathematical operations on them. It also allows special mechanisms to create subsets of the arrays, using its operator[] .

The class template takes one template parameter T, which is the type of the elements contained in it.

Most mathematical operations can be applied directly to valarray objects, and it also supports most arithmetical and comparison operators.

Members