class template
<valarray>
std::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
- (constructor)
- valarray constructor (public member function)
- (destructor)
- Valarray destructor (public member function)
- valarray operators
- Valarray operators (function)
- apply
- Apply function (public member function)
- cshift
- Cyclically shift elements (public member function)
- max
- Return highest value (public member function)
- min
- Return lowest value (public member function)
- operator=
- Assign content (public member function)
- operator[]
- Access element or subscript (public member function)
- resize
- Resize valarray (public member function)
- shift
- Shift elements (public member function)
- size
- Return size (public member function)
- sum
- Return sum of elements (public member function)