abs function template — Computes absolute value
template<typename T> valarray<T> abs(const valarray<T>& a);
The abs function computes the absolute value of each element of a.
abs
a
abs in <cmath> , abs in <cstdlib>
<cmath>
<cstdlib>