Replies: 0 comments 2 replies
-
Avoiding the
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Complete code is available here, by @DanLoran and myself (@neoblizz). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One cool, weird thing you can do with
essentials
/gunrock
is implementing sparse-linear algebra using graphs. This is the opposite of what GraphBLAS offers. The core idea is that theadvance
operator, is essentially visiting all of your nonzeros of a sparse matrix. To formally define the sparse-matrix:In computation (and in fact in
gunrock
as well), graphs are actually internally represented using the same sparse formats as what you'd use to represent sparse matrices, in a sense, they are the sparse matrices. A lot of graph datasets also are available as sparse matrices in matrix-market format (or coordinate format). All of which is supported within essentials.Therefore, to implement
SpMV
you simply have to advance from all nodes of the graph (all row indices), which will give you the following source (row index), destination (column index), weight (nonzero). The lambda-op will look something like this:Fin.
Beta Was this translation helpful? Give feedback.
All reactions