Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Fix empty linalg.norm for ord=inf and ord=-inf. #10992

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

Closed
wants to merge 1 commit into from

Conversation

hameerabbasi
Copy link
Contributor

@hameerabbasi hameerabbasi commented Apr 27, 2018

Fixes the edge cases for the calculation of an empty np.linalg.norm, for ord=np.inf (returns 0.0) and ord=-np.inf (returns np.inf).

Fixes #3763

@hameerabbasi
Copy link
Contributor Author

cc @eric-wieser As per your request. 😄

@eric-wieser
Copy link
Member

This fixes #3763, right? I'm not sure the definition is clear for ord=-inf

@hameerabbasi
Copy link
Contributor Author

hameerabbasi commented Apr 28, 2018

Edited with magic comment. I could take ord=-np.inf out, if desired. It's the minimum over the nonnegative reals, so it should be np.inf.

@carlosgmartin
Copy link
Contributor

@hameerabbasi What happened to this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants