To my understanding, numpy.sparse.csr_sparse.dot(other)
does multiply other
to my sparse matrix from the right:
A = numpy.sparse.csr_sparse(something)
B = numpy.matrix(something)
C = A.dot(B) # C = A*B
How do I commute the two matrices to get B*A
without losing the benefits of saving my matrix as a sparse one (i.e. .todense()
etc.)?