8000 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
Add guidance for min and max when x is 0D
  • Loading branch information
kgryte committed Sep 13, 2021
commit 12415cbdcb224a67e3eb52911c34d3da5d88adbd
8 changes: 8 additions & 0 deletions spec/API_specification/statistical_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ A conforming implementation of the array API standard must provide and support t

Calculates the maximum value of the input array `x`.

```{note}
When the number of elements over which to compute the maximum value is zero, the maximum value is implementation-defined. Specification-compliant libraries may choose to error, return a sentinel value (e.g., if `x` is a floating-point input array, return `NaN`), or return the minimum possible value for the input array `x` data type (e.g., if `x` is a floating-point array, return `-infinity`).
```

#### Parameters

- **x**: _<array>_
Expand Down Expand Up @@ -76,6 +80,10 @@ For a floating-point input array `x`, let `N` equal the number of elements over

Calculates the minimum value of the input array `x`.

```{note}
When the number of elements over which to compute the minimum value is zero, the minimum value is implementation-defined. Specification-compliant libraries may choose to error, return a sentinel value (e.g., if `x` is a floating-point input array, return `NaN`), or return the maximum possible value for the input array `x` data type (e.g., if `x` is a floating-point array, return `+infinity`).
```

#### Parameters

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