dgl.sparse.sp_sub_v

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

Broadcast substraction for sparse matrix and vector.

See the definition of sp_broadcast_v() for details.