Commit bd0f132
committed
MAINT: PR 22840 revisions
* `logsumexp()` had some array API compatibility issues
on the release branch related to the version of the array
API standard and possibly other dependency versions that
are older than on `main` branch. This patch works around
these by guarding `xp.real()` to only apply to complex
input and coercing a complex Python scalar to an array
to deal with a promotion issue:
`TypeError: Python complex scalars can only be promoted with complex floating-point arrays.`1 parent 033b138 commit bd0f132
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
235 | | - | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| |||
0 commit comments