bkochuna / ners570f23-SpMV

1 stars 0 forks source link

Add CSR accessor methods #44

Open KyleVaughn opened 11 months ago

KyleVaughn commented 11 months ago

Description:

This adds functionality to the SparseMatrix library to access data stored in the CSR matrix subclass. This will be needed to perform the core sparse matrix-vector multiplication requirement of the SparseMatrix library. For a given (i,j) index, the corresponding element stored in the CSR format will be returned. If the data is not there in the CSR format, zero will be returned. Furthermore, a method to return the type of sparse storage will be implemented.

Tasks:

Definition of done:

Must include getFormat() and operator()(size_t i, size_t j). The methods should be tested with the corresponding unit tests. Once tested, the implementation will be completed.

KyleVaughn commented 11 months ago

Review by @MeetMPatel

MeetMPatel commented 11 months ago

Clear and detailed explanation of the issue, tasks to be completed. Looks great!