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

sparsify is very slow #62

Open
alefcastelli opened this issue Sep 29, 2023 · 0 comments
Open

sparsify is very slow #62

alefcastelli opened this issue Sep 29, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@alefcastelli
Copy link
Contributor

consider changing the "sparsify" function (invoked when argument "tol" of PTDF is set) in the following way:

-get the ptdf.data
-data = sparse(ptdf.data)
-data.nzval[abs.(data.nzval) <= tol] .= 0
-SparseArrays.dropzeros!(data)

@alefcastelli alefcastelli added the enhancement New feature or request label Sep 29, 2023
@alefcastelli alefcastelli self-assigned this Sep 29, 2023
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

No branches or pull requests

1 participant