PyNite
PyNite copied to clipboard
Speed Improvement
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.