This document is relevant for: Trn2, Trn3
nki.language.greater#
- nki.language.greater(x, y, dtype=None)[source]#
Return (x > y) element-wise.
((Similar to numpy.greater))
Warning
This API is experimental and may change in future releases.
- Parameters:
x – a tile or a scalar value.
y – a tile or a scalar value. At least one of x, y must be a tile.
dtype – (optional) data type to cast the output type to (see Supported Data Types for more information); Defaults to the input tile dtype. Use
dtype=nl.uint8for a boolean-like result.
- Returns:
a tile with 1 where x > y, 0 otherwise.
This document is relevant for: Trn2, Trn3