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

Speed Improvement #189

Open
angelmusonda opened this issue Mar 20, 2024 · 1 comment
Open

Speed Improvement #189

angelmusonda opened this issue Mar 20, 2024 · 1 comment

Comments

@angelmusonda
Copy link

During analysis, if the sparse option is on, PyNite performs partitioning of the stiffness matrix on scipy's lil_matrix(). This tends to be slow for large models. Noticeable improvement can be made if the partitioning is done on a csr_matrix or csc_matrix. According to scipy's documentation, the only advantage of lil_matrix over csr_matrix is faster construction and efficiency in the modification of the sparsity structure. Since the matrices are not undergoing further changes after partitioning, it is more efficient to convert directly from coo_matrix to csr_matrix before partitioning.

@JWock82
Copy link
Owner

JWock82 commented Mar 24, 2024

Thank you for bringing this up. I would like to look into this further. I've got a few other items to take care of first, but any suggestions that improve speed are something I'd like to take up for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants