vec_abs
Purpose
Returns a vector containing the absolute values of the contents of the given vector.
Syntax
d=vec_abs(a)Result and argument types
The following table describes the types of the returned value and the function arguments.
| d | a |
|---|---|
| vector signed char | vector signed char |
| vector signed short | vector signed short |
| vector signed int | vector signed int |
| vector float | vector float |
| vector double | vector double |
Result value
The value of each element of
the result is the absolute value of the corresponding element of a.