array-api icon indicating copy to clipboard operation
array-api copied to clipboard

Clarify the required semantics for broadcasting with setitem

Open asmeurer opened this issue 3 years ago • 1 comments

Fixes #424.

I have used SHOULD here as suggested in the consortium meeting to not disallow NumPy-like "reverse broadcasting" semantics.

asmeurer avatar May 10 '22 18:05 asmeurer

Can we add two simple examples to illustrate what's allowed and what's not?

leofang avatar May 12 '22 17:05 leofang

@asmeurer Would you be willing to update this PR with two examples, one illustrating what is allowed and another illustrating what is disallowed?

kgryte avatar Nov 03 '22 06:11 kgryte

Added.

asmeurer avatar Nov 03 '22 21:11 asmeurer