Skip to contents

Element-wise inequality comparison.

Usage

prim_ne(lhs, rhs)

Arguments

lhs, rhs

(arrayish)
Arrayish values of any data type. Must have the same shape.

Value

arrayish
Has the same shape as the inputs and boolean data type. It is ambiguous if both inputs are ambiguous.

Implemented Rules

  • stablehlo

  • quickr

  • reverse

StableHLO

Lowers to stablehlo::hlo_compare() with comparison_direction = "NE".

See also

Examples

x <- nv_array(c(1, 2, 3))
y <- nv_array(c(1, 3, 2))
prim_ne(x, y)
#> AnvlArray
#>  0
#>  1
#>  1
#> [ CPUbool{3} ]