I changed all matrices in my formula to scipy.sparse.csr_matrix()
H = sp.csr_matrix(H)
V = sp.csr_matrix(V)
W = sp.csr_matrix(W)
And want to update this equation
H = H * np.dot(Wt,(V/(np.dot(W,H)))) / np.dot(Wt,ONES)
Where Wt
is W.conj().T
and ONES
is np.ones(shape=(row,col))
I already change all dot product and elementwise multiplication but get stuck at the division
H = H.multiply(Wt.dot(V/(W.dot(H)))) / Wt.dot(ONES)
How to change /
here in this equation for scipy sparse matrix operation?