pow function template — Computes power
template<typename T> valarray<T> pow(const valarray<T>& a, const valarray<T>& b); template<typename T> valarray<T> pow(const valarray<T>& a, const T& y); template<typename T> valarray<T> pow(const T& x, const valarray<T>& b);
The pow
function computes
the power xy
, in which x
is a scalar or an element of a
, and y
is a scalar or an element of b
.