-
Notifications
You must be signed in to change notification settings - Fork 94
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
Memory usage reduction #94
Comments
Could also add a spectrum_only param to skip the eigenvectors as they aren't required for some stuff. |
Thanks for the suggestions! Reusing the memory is definitely a good idea. Care to make a PR? I'm less sure about a |
Btw, I have an implementation of graphwave (about 10 lines), if that would also be of interest. |
Let's discuss that in #97. |
compute_fourier_basis uses self._e, self._U = np.linalg.eigh(self.L.toarray()) this could be replaced with scipy.linalg.eigh(self.L.toarray(), overwrite_a=True) to reuse the memory used by the output of self.L.toarray().
The text was updated successfully, but these errors were encountered: