We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I am computing a cross-correlation matrix of 150K * 150K matrix of float32.
Numpy insists on making the results dtype be float64. This causes the amount of memory to be "too much".
I would debate that default, but changing it would probably be too disruptive (not backward compatible).
However, how about a dtype parameter for corrcoef?
In general I would have liked to see a dtype parameter "everywhere" to override the float64 default...
The text was updated successfully, but these errors were encountered:
Looks like corrcoef relies on cov in which deliberately casts to float64.
I made an experimental PR (#17456) for this, and it seems to work without much of a hitch.
[This is my first PR to numpy so I'm happy to get any feedback you might have!]
Sorry, something went wrong.
Wow, thanks!
Successfully merging a pull request may close this issue.
Feature
I am computing a cross-correlation matrix of 150K * 150K matrix of float32.
Numpy insists on making the results dtype be float64. This causes the amount of memory to be "too much".
I would debate that default, but changing it would probably be too disruptive (not backward compatible).
However, how about a dtype parameter for corrcoef?
In general I would have liked to see a dtype parameter "everywhere" to override the float64 default...
The text was updated successfully, but these errors were encountered: