Group: | Operators |
See also: | >= <= == < |
Function: | > | |
Description: | > is a operator for elementwise comparison of arrays (greater). If the condition is false 0 is returned, otherwise 1. |
Usage: | z = y > x | |
Input: | ||
x | array | |
y | array | |
Output: | ||
z | array |
The operator > is equivalent to .>, which are provided for compatibility reasons with former versions of XploRe.
#(3,4) > #(3,2) #(3,4) .> #(3,4) x = #(1/0, -1/0, NaN, 0) x > x'
Contents of _tmp [1,] 0 [2,] 1 Contents of _tmp [1,] 0 [2,] 0 Contents of _tmp [1,] 0 1 0 1 [2,] 0 0 0 0 [3,] 0 0 0 0 [4,] 0 1 0 0