Skip to content
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 COO accessor methods #43

Open
KyleVaughn opened this issue Oct 13, 2023 · 2 comments
Open

Add COO accessor methods #43

KyleVaughn opened this issue Oct 13, 2023 · 2 comments
Assignees
Milestone

Comments

@KyleVaughn
Copy link
Collaborator

KyleVaughn commented Oct 13, 2023

Description:This task defines the accessor methods for the COO matrix. These methods are

Tasks: Define the following functions:

std::string getFormat() - get the format of the underlying SpMV format that is being used.
size_t operator() (size_t i, size_t j) : Have operator() to get the data of the matrix coefficients based on the storage map of COO
std::string getFilename() : underlying file for the COO format.
size_t getCoefficient(size_t i, size_t j) : read from the file and get the coefficients.
size_t setCoefficent(size_t i ,size_t j, size_t value) : Set the value of the (i,j) coefficient to the value 'value'
size_t getNumRows() : get number of rows
size_t getNumCols() : gte number of columns
size_t getNumNonZeros(): get number of nonzero entries of the matrix
MatrixState getState() : get state of the matrix

Definition of done: Define the above functions in a proper manner depending on the underlying COO matrix class.

Must include getFormat() and operator()(size_t i, size_t j)

@bkochuna bkochuna added this to the Lab 07 milestone Oct 13, 2023
@KyleVaughn
Copy link
Collaborator Author

review by @Aravind-Kulanthaivelu

@Aravind-Kulanthaivelu
Copy link
Collaborator

This task is well defined and has mentioned defined functions covers all the required data that needs to be accessed for successful implementation of our program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants