intent: Multiplying Rows and Columns of Python Sparse Matrix by elements in an Array
rewritten_intent: multiply the columns of sparse matrix `m` by array `a` then multiply the rows of the resulting matrix by array `a`
snippet: numpy.dot(numpy.dot(a, m), a)