Scipy has different kind of matrices. Two of them are the column sparse matrix and the row sparse matrix. The column sparse matrix supports fast column slicing operations and the row sparse matrix supports fast row slicing operations.
But I am not if the operation a[i,:] is a column or a row slicing operation. Any help?