Repository navigation
Lanczos Solver with COO input and cusparse wrappers - #2851
Conversation
viclafargue
left a comment
There was a problem hiding this comment.
LGTM, just need some docs updates.
| * @tparam index_type_t the type of data used for indexing. | ||
| * @tparam value_type_t the type of data used for weights, distances. |
There was a problem hiding this comment.
Please update the documentation with IndexTypeT, ValueTypeT and please add AType saying it has to either be a RAFT COO or CSR matrix. Also A can be either not just CSR. I would even say that the public function that should be referenced in the documentation should not be a template, but two different functions in the header file. Also, is the other lanczos_compute_smallest_eigenvectors function still supposed to receive its rows and columns as a CSR matrix. Please document this.
There was a problem hiding this comment.
I have changed the public function to have a specific type of raft::device_coo_matrix_view instead of template type for more clarity. I have also updated the docs. a73f587
|
/merge |
Resolves #2832 and Resolves #2833
This PR adds support for COO matrix input for the Lanczos Solver.
The
ATypetemplate parameter is added to support both COO and CSR.The lanczos solver uses cusparse for spmv computations. We use raft to create a cusparse matrix type with create_descriptor.
To enable coo support we need to add cusparseCreateCOO wrappers and a overload for create_descriptor.