Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: linalg.polar: empty array support #20520

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

redha2404
Copy link

Reference issue

Check the box "polar" in #20372

What does this implement/fix?

If a is empty, the polar function now returns p and u of the right types.

Additional information

Discussions in closed PR #20432

@github-actions github-actions bot added scipy.linalg defect A clear bug or issue that prevents SciPy from being installed or used as expected labels Apr 18, 2024
@yuanx749
Copy link
Contributor

yuanx749 commented Apr 19, 2024

I think the empty array would be handled correctly by svd in this function, so only adding a test is sufficient. Could you double check?

@redha2404
Copy link
Author

Thanks to the modification of svd, polar doesn't need modifications anymore 👍

@redha2404
Copy link
Author

I keep my regression test for the modifications in svd 0b4a335

@redha2404 redha2404 requested a review from ilayn April 19, 2024 16:01
@rgommers rgommers requested a review from ev-br April 25, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.linalg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants