10000 Specify behavior of statistical reductions over the empty set by kgryte · Pull Request #262 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Specify behavior of statistical reductions over the empty set #262

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 5 commits into from
Sep 15, 2021
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
Next Next commit
Specify sum behavior when provided a 0D array
  • Loading branch information
kgryte committed Sep 13, 2021
commit 8e7a73c148e2a4e162f8a3b586c47952825111c0
6 changes: 6 additions & 0 deletions spec/API_specification/statistical_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ Calculates the standard deviation of the input array `x`.

Calculates the sum of the input array `x`.

#### Special Cases

For an input array `x`,

- if an axis (or axes) along which to compute products is zero-dimensional, the sum is `0`.

#### Parameters

- **x**: _<array>_
Expand Down
0