| Open | > 0 0 0 | Larger Than |
|
Open is the inverse of box, that is, ><y is y .
When applied to an open array (that has no boxed elements),
open has no effect. Opened atoms are brought to a common shape
as discussed in Section II B.
|
x>y is 1 if x is tolerantly larger
than y . See Equal (=)
for a discussion of tolerance.
For example:1 2 3 4 5 > 5 4 3 2 1 0 0 0 1 1Tolerance t is provided by >!.t . |
]a=: 1 2 3;4 5 6;7 8 9 +-----+-----+-----+ |1 2 3|4 5 6|7 8 9| +-----+-----+-----+ >a 1 2 3 4 5 6 7 8 9Results of different shapes are padded as defined in Section II B. For example:
(>1;2 3;4 5 6); (>'a';'bc';'def'); (<\i.4); (><\i.4)
+-----+---+---------------------+-------+
|1 0 0|a |+-+---+-----+-------+|0 0 0 0|
|2 3 0|bc ||0|0 1|0 1 2|0 1 2 3||0 1 0 0|
|4 5 6|def|+-+---+-----+-------+|0 1 2 0|
| | | |0 1 2 3|
+-----+---+---------------------+-------+
</~ i.5 NB. Table of the dyad <:
0 1 1 1 1
0 0 1 1 1
0 0 0 1 1
0 0 0 0 1
0 0 0 0 0
1 < 1+10^-8+i.15 NB. Tolerant comparison
1 1 1 1 1 1 0 0 0 0 0 0 0 0 0
1 <!.(0) 1+10^-8+i.15 NB. Exact comparison (0-tolerance)
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0