The stride function tells the size of each element.
valarray<size_t> stride() const;
The size of the element as a valarray is returned.