Equana

Back to NDArray Operations

gt

Element-wise greater-than. Supports scalar broadcasting.

Syntax

gt(a: NDArray, b: NDArray) → r

Backends

TypeScriptnumwa

Description

Element-wise greater-than. Supports scalar broadcasting.

Parameters

NameDescription
aLeft operand
bRight operand

Returns

NDArray of booleans (1.0 for true, 0.0 for false)

Examples

Try It
>> gt([3, 1, 4], [2, 2, 2])
[1, 0, 1]

Other Overloads