Returns a vector containing the absolute values of the contents of the given vector.
d=vec_abs(a)
The following table describes the types of the returned value and the function arguments.
d | a |
---|---|
vector4double | vector4double |
The value of each element of the result is the absolute value of the corresponding element of a.
d[0] = |a[0]|
d[1] = |a[1]|
d[2] = |a[2]|
d[3] = |a[3]|
a = (10.0, -20.0, 30.0, -40.0)
d: (10.0, 20.0, 30.0, 40.0)