Standard C++ Library Reference ISO/IEC (VERSION3)
sinh
template<class Ty>
valarray<Ty> sinh(const valarray<Ty>& left);
The template function returns an object of class valarray<Ty>, each of whose elements I is the
hyperbolic sine of left[I].
slice
class slice {
public:
slice();
slice(size_t st, size_t len, size_t str);
size_t start() const;
size_t size() const;
size_t stride() const;
};
The class stores the parameters that characterize a slice_array when an object of class slice appears
as a subscript for an object of class valarray<Ty>. The stored values include:
a starting index●
a total length●
a stride, or distance between subsequent indices●
slice::slice
slice();
slice(size_t st,
const valarray<size_t> len, const valarray<size_t> str);
The default constructor stores zeros for the starting index, total length, and stride. The second constructor
stores st for the starting index, len for the total length, and str for the stride.
slice::size
size_t size() const;
The member function returns the stored total length.
slice::start
size_t start() const;
The member function returns the stored starting index.