data-apis / array-api

RFC document, tooling and other content related to the array API standard
https://data-apis.github.io/array-api/latest/
MIT License
205 stars 42 forks source link

Add `clip` to the specification #715

Closed kgryte closed 5 months ago

kgryte commented 7 months ago

This PR

Note that this PR would introduce changes to existing clip functionality in NumPy et al. Namely,

kgryte commented 5 months ago

I've updated this PR based on feedback from the 30 November 2023 workgroup meeting. Namely,

kgryte commented 5 months ago

@rgommers I've updated min and max to be both positional and kwarg. And I added a note stating that arguments having different data type kinds will result in implementation-dependent behavior.

kgryte commented 5 months ago

As this PR has received the OK and has not received any further comments, will go ahead and merge. Thanks all!