@@ -107,6 +107,7 @@ def index_add(x, idx, y, indices_are_sorted=False, unique_indices=False):
107
107
108
108
Returns the value of `x` that would result from the
109
109
NumPy-style :mod:`indexed assignment <numpy.doc.indexing>`::
110
+
110
111
x[idx] += y
111
112
112
113
Note the `index_add` operator is pure; `x` itself is
@@ -149,6 +150,7 @@ def index_mul(x, idx, y, indices_are_sorted=False, unique_indices=False):
149
150
150
151
Returns the value of `x` that would result from the
151
152
NumPy-style :mod:`indexed assignment <numpy.doc.indexing>`::
153
+
152
154
x[idx] *= y
153
155
154
156
Note the `index_mul` operator is pure; `x` itself is
@@ -191,6 +193,7 @@ def index_min(x, idx, y, indices_are_sorted=False, unique_indices=False):
191
193
192
194
Returns the value of `x` that would result from the
193
195
NumPy-style :mod:`indexed assignment <numpy.doc.indexing>`::
196
+
194
197
x[idx] = minimum(x[idx], y)
195
198
196
199
Note the `index_min` operator is pure; `x` itself is
@@ -230,6 +233,7 @@ def index_max(x, idx, y, indices_are_sorted=False, unique_indices=False):
230
233
231
234
Returns the value of `x` that would result from the
232
235
NumPy-style :mod:`indexed assignment <numpy.doc.indexing>`::
236
+
233
237
x[idx] = maximum(x[idx], y)
234
238
235
239
Note the `index_max` operator is pure; `x` itself is
@@ -269,6 +273,7 @@ def index_update(x, idx, y, indices_are_sorted=False, unique_indices=False):
269
273
270
274
Returns the value of `x` that would result from the
271
275
NumPy-style :mod:`indexed assignment <numpy.doc.indexing>`::
276
+
272
277
x[idx] = y
273
278
274
279
Note the `index_update` operator is pure; `x` itself is
0 commit comments