Standard C++ Library Reference ISO/IEC (VERSION3)
valarray<Ty> operator|(const Ty& left,
const valarray<Ty>& right);
The first template operator returns an object of class valarray<Ty>, each of whose elements I is
left[I] | right[I]. The second template operator stores in element I left[I] | right. The
third template operator stores in element I left | right[I].
operator||
template<class Ty>
valarray<bool> operator||(const valarray<Ty>& left,
const valarray<Ty>& right);
template<class Ty>
valarray<bool> operator||(const valarray<Ty> left,
const Ty& right);
template<class Ty>
valarray<bool> operator||(const Ty& left,
const valarray<Ty>& right);
The first template operator returns an object of class valarray<bool>, each of whose elements I is
left[I] || right[I]. The second template operator stores in element I left[I] || right. The
third template operator stores in element I left || right[I].
pow
template<class Ty>
valarray<Ty> pow(const valarray<Ty>& left,
const valarray<Ty>& right);
template<class Ty>
valarray<Ty> pow(const valarray<Ty> left, const Ty& right);
template<class Ty>
valarray<Ty> pow(const Ty& left, const valarray<Ty>& right);
The first template function returns an object of class valarray<Ty>, each of whose elements I is
left[I] raised to the right[I] power. The second template function stores in element I left[I]
raised to the right power. The third template function stores in element I left raised to the right[I]
power.
sin
template<class Ty>
valarray<Ty> sin(const valarray<Ty>& left);
The template function returns an object of class valarray<Ty>, each of whose elements I is the sine of
left[I].