Scipy CSR Matrix Element-wise Addition

Viewed 5964

Unlike numpy arrays/matrices, CSR matrix seems not to allow automatic broadcasting. There are methods in the CSR implementation for element-wise multiplication, but not addition. How to add to a CSR Sparse matrix by a scalar efficiently?

1 Answers
Related