How to transform numpy.matrix or array to scipy sparse matrix How to transform numpy.matrix or array to scipy sparse matrix python python