Commit a5005d3
committed
scalars in binary functions
1. Generate all binary "ufuncs" in a uniform way, with a decorator
2. Make binary "ufuncs" follow the same logic of the binary operators
3. Reuse the test loop of Array.__binop__ for binary "ufuncs"
4. (minor) in tests, reuse canonical names for dtype categories
("integer or boolean" vs "integer_or_boolean")1 parent 4b101b6 commit a5005d3
File tree
5 files changed
+229
-576
lines changed- array_api_strict
- tests
5 files changed
+229
-576
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
0 commit comments