dgl.sparse.sp_add_v

dgl.sparse.sp_add_v(A: dgl.sparse.sparse_matrix.SparseMatrix, v: torch.Tensor)dgl.sparse.sparse_matrix.SparseMatrix[source]

Broadcast addition for sparse matrix and vector.

See the definition of sp_broadcast_v() for details.