-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add initial implementation for Sparse Matrix Mult #3516
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly looks good, I think we want to remove the debug output though. Also, one question on naming that I've pinged Tess about.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, missed this first time around, but looks like the failing CI checks will need to be resolved as well.
The error with |
Details in PR Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
mypy really wants the sparray type to be indexable, but that is not in the scope of this PR. I can make it the case in a future PR, but for now I would like to silence the error and move on. Therefore I added a __get_item__ method to the sparray class which just raises a NotImplementedError. Signed-off-by: Shreyas Khandekar <[email protected]>
This worked around the bug in chpldoc by not use'ing the layout enum Signed-off-by: Shreyas Khandekar <[email protected]>
5caab31
to
45183a0
Compare
This PR does the following:
SparseGenSymEntry
andSparseSymEntry
are added to support sparse matrices.sparray
is the client representation of sparse matricesak.random_sparse_matrix
ak.sparse_matrix_matrix_mult
I am not adding the new SparseMatrixMsg to ServerModule.cfg by default today because it is an unstable prototype and may change in the future.
Future work here is to add support for printing the sparrays and add a test for the new functions.