Open KyleVaughn opened 10 months ago
Review by @AvirupSircar
What is the common interface we need to specify for our accessors? I am not sure. @maxzog @AvirupSircar @marchier. Also, I don't think there is an issue assigned for JDS accessors? what do you think about that? do they not need one?
Max mentioned operator()(size_t i, size_t j)
would be the best interface for the SparseMatrix class
Probably don’t have enough students to have that issue defined
On Fri, Oct 13, 2023 at 11:15 AM jacob-umich @.***> wrote:
What is the common interface we need to specify for our accessors? I am not sure. @maxzog https://github.com/maxzog @AvirupSircar https://github.com/AvirupSircar @marchier https://github.com/marchier. Also, I don't think there is an issue assigned for JDS accessors? what do you think about that? do they not need one?
— Reply to this email directly, view it on GitHub https://github.com/bkochuna/ners570f23-SpMV/issues/45#issuecomment-1761685871, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHRN4NUCEUW6UT5FBTU5PTX7FLHHANCNFSM6AAAAAA56SRYCA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@maxzog @AvirupSircar @marchier Accessor ppl. Please update this comment with the attributes you think should have accessor functionality. This way, it is all consistent.
SparseMatrix<fp_type>::setCoefficient
for example)Looks fine. The following can be a starting bunch of accessor methods, https://github.com/bkochuna/ners570f23-SpMV/issues/43 . The other methods will depend on how the underlying SpMv classes are designed which needs to be collaborated and decided.
Hello @bkochuna, to follow up on my question in class last week - what should the accessor method be accessing? I've gotten conflicting information. Should it just get the matrix format (enum type) and the coefficient at an (i,j) index or should it also be able to return the other matrix properties listed in the comment above?
Description:
This task defines the accessor methods for the ELL matrix. These methods are used to access protected or private variables of the class. These methods could be used by most other portions of the library. For example, the accessor for matrix coefficients could be used by the matrix-vector method to perform the computations. This task helps to fulfill the functional requirement "The library shall provide interfaces to return or define a matrix in ELLPACK format." because it allows the user to get and set information relevant to the ELLPACK format.
Tasks:
Definition of done:
This task can be complete if methods have been implemented and tested to get and set all relevant attributes. At the bare minimum, the getFormat() and operator()(size_t i, size_t j) methods must be included.