![]() |
Prev | Next |
u op= x
y
(
z
) to refer to the value of
u
before (after) the operation.
This operation sets
z
equal to
y op x
.
op
are
op
| Meaning |
+ | addition |
- | subtraction |
* | multiplication |
/ | division |
x
and
y
(the value of
u
before the operation)
and the corresponding
z
(the value of
u
after the operation).
y
x float a_float a2float
-------------------------------
float - float a_float a2float
a_float - a_float a_float
a2float - a2float a2float
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).