-
Notifications
You must be signed in to change notification settings - Fork 0
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 a CSR view method #52
Comments
Review by @jacob-umich |
Description:
Also, I my thought was the view method is supposed to print the whole matrix. I am not sure though. Tasks:
Definition of done:
|
Hi, the CSR class has been added to the "csr" branch. You may start to write your "view" function if you want. Just add some comments or examples to tell me "what it supposed to be" in your definition -- otherwise I have no clue in my test. Also, just let me know if there are any bugs ... |
@zkjiaumich go ahead and make a pull request for your view method and I can start reviewing it |
@lwh1106 Can you add the view test to our branch? I may need to double check the correctness of the view method. |
@zkjiaumich I try to run your view function but it seems that it cannot be built ... |
@jacob-umich Sorry, I am a bit late (hopefully not the very last minute) to finish this test! Now the test is over there (in the directory of spmv/tests/CSR_View_Test), and you are free to review my work! Thanks for your patience. |
@lwh1106 I think I am only reviewing the implementation of the view method. I think the review of the tests is going to be handled by someone else if that's what you are talking about. |
@jacob-umich Thanks! Sorry, I messed up these two, but in the version at midnight (not the current one), based on the test results, the view method works well, after it was modified by Zikang -- also thanks for his hard work. |
Description:
The sparse matrix multiplication is implemented in various methods where the matrix is stored in different formats. It would be easier for developers to check the correctness of the CSR method when the matrix is printed in the original 2D format. In light of this, the CSR view method is designed to print the 2D matrix by taking the rowPtrs, colIdx, and value arrays in CSR format.
Tasks:
Definition of done:
The method can print the correct matrix to screen and a file given the arrays in CSR format. The method can pass all the CSR view method tests.
The text was updated successfully, but these errors were encountered: