Long Integer for Non-Zero Elements of Sparse Matrices #634
Replies: 1 comment
-
|
In principal the For Without changing anything in ojAlgo you have some alternatives: Use Use Implementing a custom https://www.ojalgo.org/2020/09/sparse-and-special-structure-matrices/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I use OjAlgo a lot and greatly appreciate its robustness and speed, particularly with matrix operations.
I'm writing to ask about the current implementation of sparse matrices and the limits on the number of non-zero elements.
Currently, it appears the maximum number of non-zero elements is constrained by an int. In my large-scale numerical simulations I often encounter matrices with billions of cells, even a small density can result in a non-zero count that exceeds 2,147,483,647.
My question is: Are there any plans to expand the capacity of the sparse matrix implementation to handle a maximum number of non-zero elements defined by a long? Maybe an alternate implementation where the user can chose between the two matrix types for people who don't need such large matrices?
Any insight into the feasibility, roadmap, or technical challenges of making this change would be highly valued. Thank you for your work on this excellent library!
Beta Was this translation helpful? Give feedback.
All reactions