title: How to transform numpy.matrix or array to scipy sparse matrix
body: <p>For SciPy sparse matrix, one can use <code>todense()</code> or <code>toarray()</code> to transform to NumPy matrix or array. What are the functions to do the inverse?</p>
  
  <p>I searched, but got no idea what keywords should be the right hit.</p>