Standard C++ Library Reference ISO/IEC (VERSION3)
arctangent of left[I] / right[I]. The second template function stores in element I the arctangent of
left[I] / right. The third template function stores in element I the arctangent of left /
right[I].
cos
template<class Ty>
valarray<Ty> cos(const valarray<Ty>& left);
The template function returns an object of class valarray<Ty>, each of whose elements I is the cosine of
left[I].
cosh
template<class Ty>
valarray<Ty> cosh(const valarray<Ty>& left);
The template function returns an object of class valarray<Ty>, each of whose elements I is the
hyperbolic cosine of left[I].
exp
template<class Ty>
valarray<Ty> exp(const valarray<Ty>& left);
The template function returns an object of class valarray<Ty>, each of whose elements I is the
exponential of left[I].
gslice
class gslice {
public:
gslice();
gslice(size_t off,
const valarray<size_t> lenarr,
const valarray<size_t> incarr);
size_t start() const;
const valarray<size_t> size() const;
const valarray<size_t> stride() const;
};
The class stores the parameters that characterize a gslice_array when an object of class gslice
appears as a subscript for an object of class valarray<Ty>. The stored values include:
a starting index●
a length vector of class valarray<size_t>●
a stride vector of class valarray<size_t>●
The two vectors must have the same length.