raft
raft copied to clipboard
[FEA] Laplacian Sparse primitive for spectral algorithms
Documenting for future work:
Given a sparse matrix A convert it to a sparse laplacian matrix L where D is degree matrix. L = D - A
Ideas on how to do this and how I started on it are as follows:
L = D + (-A)- Use raft::sparse::linalg::coo_degree to get
D - Use multiply_scalar on values array of
Ato get-A - Use the primitives from
add.cuhto addD + (-A)
Related to https://github.com/rapidsai/cuml/issues/6045