import numpy as np
from scipy.sparse import csr_matrix
A=csr_matrix(np.array([[1,0,0],[1,2,3],[2,2,2]]))
B=csr_matrix(np.array([[2,0,0],[2,2,0],[3,3,3]]))
C=A.multiply(B)
print(C.toarray())
[[2 0 0]
[2 4 0]
[6 6 6]]
import numpy as np
from scipy.sparse import csr_matrix
A=csr_matrix(np.array([[1,0,0],[1,2,3],[2,2,2]]))
B=csr_matrix(np.array([[2,0,0],[2,2,0],[3,3,3]]))
C=A.multiply(B)
print(C.toarray())
[[2 0 0]
[2 4 0]
[6 6 6]]