valarray

The valarray provides a computationally optimized implementation of an array container.

Constructorscreate valarrays and initialize them with some data
Operatorscompare, assign, and access elements of a valarray
applyapplies function to all elements in the valarray
cshiftcyclically shifts the elements (left for i<0, right for i>0)
maxreturns the maximum value in the valarray
minreturns the minimum value in the valarray
resizechange the size of the vector
shiftlogically shifts the elements (left for i<0, right for i>0)
sizereturns the number of items in the vector
sumsum elements of a valarray

Related topics slice_array gslice_array mask_array indirect_array