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

For the gaussian approximation on CESM matrix W is 5.7GB #90

Closed
AlessandroLovo opened this issue Jan 26, 2024 · 1 comment · Fixed by #91
Closed

For the gaussian approximation on CESM matrix W is 5.7GB #90

AlessandroLovo opened this issue Jan 26, 2024 · 1 comment · Fixed by #91
Assignees
Labels
enhancement New feature or request

Comments

@AlessandroLovo
Copy link
Collaborator

The matrix $W$ is what we use to compute the H2 norm of the projection pattern $p$ and thus is a $d\times d$ matrix that can get very very big.
However $W$ is also very sparse (99.98% of its entries are zero), so we should be able to save it in a much more memory efficient way

@AlessandroLovo AlessandroLovo added the enhancement New feature or request label Jan 26, 2024
@AlessandroLovo AlessandroLovo self-assigned this Jan 26, 2024
@AlessandroLovo
Copy link
Collaborator Author

We can use scipy.sparse.dia_matrix

@AlessandroLovo AlessandroLovo linked a pull request Jan 26, 2024 that will close this issue
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant