The valarray provides a computationally optimized implementation of an array container.
| Constructors | create valarrays and initialize them with some data | 
| Operators | compare, assign, and access elements of a valarray | 
| apply | applies function to all elements in the valarray | 
| cshift | cyclically shifts the elements (left for i<0, right for i>0) | 
| max | returns the maximum value in the valarray | 
| min | returns the minimum value in the valarray | 
| resize | change the size of the vector | 
| shift | logically shifts the elements (left for i<0, right for i>0) | 
| size | returns the number of items in the vector | 
| sum | sum elements of a valarray | 
Related topics slice_array gslice_array mask_array indirect_array