You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ``offset < 0``: off-diagonal below the main diagonal.
454
464
455
465
Default: ``0``.
466
+
dtype: Optional[dtype]
467
+
data type of the returned array. If ``None``,
468
+
469
+
- if the default data type corresponding to the data type "kind" (integer or floating-point) of ``x`` has a smaller range of values than the data type of ``x`` (e.g., ``x`` has data type ``int64`` and the default data type is ``int32``, or ``x`` has data type ``uint64`` and the default data type is ``int64``), the returned array must have the same data type as ``x``.
470
+
- if ``x`` has a real-valued floating-point data type, the returned array must have the default real-valued floating-point data type.
471
+
- if ``x`` has a signed integer data type (e.g., ``int16``), the returned array must have the default integer data type.
472
+
- if ``x`` has an unsigned integer data type (e.g., ``uint16``), the returned array must have an unsigned integer data type having the same number of bits as the default integer data type (e.g., if the default integer data type is ``int32``, the returned array must have a ``uint32`` data type).
473
+
474
+
If the data type (either specified or resolved) differs from the data type of ``x``, the input array should be cast to the specified data type before computing the sum. Default: ``None``.
475
+
476
+
.. note::
477
+
keyword argument is intended to help prevent data type overflows.
0 commit comments