8000 Add complex number support to `sum` by kgryte · Pull Request #538 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Add complex number support to sum #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update copy
  • Loading branch information
kgryte committed Dec 1, 2022
commit 997de97dc9bed391e607a1f46c49d679ec507570
2 changes: 1 addition & 1 deletion spec/API_specification/array_api/statistical_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def sum(x: array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, dtyp

- If ``N`` is ``0``, the sum is ``0`` (i.e., the empty sum).

For both real-valued and complex floating-point operands, special cases must be handled as if the operation is implemented by successive evaluation of :func:`~array_api.add`.
For both real-valued and complex floating-point operands, special cases must be handled as if the operation is implemented by successive application of :func:`~array_api.add`.

Parameters
----------
Expand Down
0