![]() |
Prev | Next |
z = x op y
z
to the result of the binary operation defined by
op
and with
x
as the left operand and
y
as the right operand.
op
are
op
| Meaning |
> | greater than |
> | less than |
>= | greater than or equal |
<= | less than or equal |
== | equal |
!= | not equal |
x
and
y
.
The corresponding result type for
z
is always bool
.
y
x float a_float a2float
-------------------------------
float - yes yes yes
a_float - yes yes no
a2float - yes no yes
The type float
does not need to be matched exactly
but rather as an instance of float
.
x
or
y
or both may be
a numpy.array
with elements
that match one of possible type choices above.
If both
x
and
y
are arrays, they must have the same shape.
When either
x
or
y
is an array,
the result
z
is an array with the same shape.
The type of the elements of
z
correspond to the table above
(when the result type is a float
,
this only refers to the element types matching as instances).