scipy.sparse
spmatrix.
getrow
Returns a copy of row i of the matrix, as a (1 x n) sparse matrix (row vector).
scipy.sparse.spmatrix.getnnz
scipy.sparse.spmatrix.maximum