@@ -148,19 +148,15 @@ def sum(x, /, *, axis=None, dtype=None, keepdims=False):
148
148
data type of the returned array. If `None`, the default data
149
149
type is inferred from the "kind" of the input array data type.
150
150
151
- * If `x` has a real-valued floating-point data type,
152
- the returned array will have the default real-valued
153
- floating-point data type for the device where input
154
- array `x` is allocated.
151
+ * If `x` has a real- or complex-valued floating-point data
152
+ type, the returned array will have the same data type as
153
+ `x`.
155
154
* If `x` has signed integral data type, the returned array
156
155
will have the default signed integral type for the device
157
156
where input array `x` is allocated.
158
157
* If `x` has unsigned integral data type, the returned array
159
158
will have the default unsigned integral type for the device
160
159
where input array `x` is allocated.
161
- * If `x` has a complex-valued floating-point data type,
162
- the returned array will have the default complex-valued
163
- floating-pointer data type for the device where input
164
160
array `x` is allocated.
165
161
* If `x` has a boolean data type, the returned array will
166
162
have the default signed integral type for the device
@@ -210,20 +206,15 @@ def prod(x, /, *, axis=None, dtype=None, keepdims=False):
210
206
data type of the returned array. If `None`, the default data
211
207
type is inferred from the "kind" of the input array data type.
212
208
213
- * If `x` has a real-valued floating-point data type,
214
- the returned array will have the default real-valued
215
- floating-point data type for the device where input
216
- array `x` is allocated.
209
+ * If `x` has a real- or complex-valued floating-point data
210
+ type, the returned array will have the same data type as
211
+ `x`.
217
212
* If `x` has signed integral data type, the returned array
218
213
will have the default signed integral type for the device
219
214
where input array `x` is allocated.
220
215
* If `x` has unsigned integral data type, the returned array
221
216
will have the default unsigned integral type for the device
222
217
where input array `x` is allocated.
223
- * If `x` has a complex-valued floating-point data type,
224
- the returned array will have the default complex-valued
225
- floating-pointer data type for the device where input
226
- array `x` is allocated.
227
218
* If `x` has a boolean data type, the returned array will
228
219
have the default signed integral type for the device
229
220
where input array `x` is allocated.
@@ -273,10 +264,8 @@ def logsumexp(x, /, *, axis=None, dtype=None, keepdims=False):
273
264
data type of the returned array. If `None`, the default data
274
265
type is inferred from the "kind" of the input array data type.
275
266
276
- * If `x` has a real-valued floating-point data type,
277
- the returned array will have the default real-valued
278
- floating-point data type for the device where input
279
- array `x` is allocated.
267
+ * If `x` has a real-valued floating-point data type, the
268
+ returned array will have the same data type as `x`.
280
269
* If `x` has a boolean or integral data type, the returned array
281
270
will have the default floating point data type for the device
282
271
where input array `x` is allocated.
@@ -330,10 +319,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False):
330
319
data type of the returned array. If `None`, the default data
331
320
type is inferred from the "kind" of the input array data type.
332
321
333
- * If `x` has a real-valued floating-point data type,
334
- the returned array will have the default real-valued
335
- floating-point data type for the device where input
336
- array `x` is allocated.
322
+ * If `x` has a real-valued floating-point data type, the
323
+ returned array will have the same data type as `x`.
337
324
* If `x` has a boolean or integral data type, the returned array
338
325
will have the default floating point data type for the device
339
326
where input array `x` is allocated.
0 commit comments