Group: | Mathematical Functions |
Topic: | Common Functions |
See also: |
Function: | abs | |
Description: | Computes the absolute values of the elements of an array. |
Usage: | z = abs(x) | |
Input: | ||
x | array | |
Output: | ||
z | array |
x = #(-1, 3)~#(1, -3) abs(x)
Contents of abs [1,] 1 1 [2,] 3 3