Commit 44d0c52
committed
BUG: Do not use system cpow directly.
Numpy computes small integer powers by multiplication, this leads to
different results than the system cpow for such integers. In particular,
cpow((0 + inf*1j), 2) returns (-inf + 0j) rather than (-inf + nanj). The
system version probably makes more sense, but better to keep
compatibility at this point. We could fix our results using cproj.1 parent 34b5f9f commit 44d0c52
1 file changed
Lines changed: 36 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
435 | 456 | | |
436 | 457 | | |
437 | 458 | | |
| |||
440 | 461 | | |
441 | 462 | | |
442 | 463 | | |
443 | | - | |
| 464 | + | |
444 | 465 | | |
445 | 466 | | |
446 | 467 | | |
| |||
505 | 526 | | |
506 | 527 | | |
507 | 528 | | |
508 | | - | |
509 | | - | |
510 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
511 | 540 | | |
512 | | - | |
513 | | - | |
514 | 541 | | |
| 542 | + | |
| 543 | + | |
515 | 544 | | |
516 | 545 | | |
517 | 546 | | |
| |||
1753 | 1782 | | |
1754 | 1783 | | |
1755 | 1784 | | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | 1785 | | |
1775 | 1786 | | |
0 commit comments