Skip to content

Update dtype requirements for existing linear algebra APIs #148

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

Merged
merged 4 commits into from
Apr 11, 2021

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Mar 24, 2021

This PR

  • updates and/or adds dtype requirements for existing linear algebra APIs. Following element-wise APIs, the use of must is replaced with should in order to allow some flexibility in accepted dtypes when warranted.

@rgommers rgommers added the Maintenance Bug fix, typo fix, or general maintenance. label Mar 25, 2021
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, thanks @kgryte

For more than 3-dimensions, efficiently computing the determinant
relies on factorization, which is likely to be inexact and require
floating-point computation. Accordingly, we should restrict input
dtypes to avoid potential casting issues (e.g., int64 to float64).
@rgommers rgommers merged commit c0911bb into main Apr 11, 2021
@rgommers rgommers deleted the linalg-dtypes branch April 11, 2021 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Bug fix, typo fix, or general maintenance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants