def getrow(self, i):
<EOL>from .csr import csr_matrix<EOL>m = self.shape[<NUM_LIT:0>]<EOL>if i < <NUM_LIT:0>:<EOL><INDENT>i += m<EOL><DEDENT>if i < <NUM_LIT:0> or i >= m:<EOL><INDENT>raise IndexError("<STR_LIT>")<EOL><DEDENT>row_selector = csr_matrix(([<NUM_LIT:1>], [[<NUM_LIT:0>], [i]]), shape=(<NUM_LIT:1>,m), dtype=self.dtype)<EOL>return row_selector * self<EOL>
Returns a copy of row i of the matrix, as a (1 x n) sparse
        matrix (row vector).