'Returns a copy of row i of the matrix as a (1 x n)
DOK matrix.'

def getrow(self, i):

    out = self.__class__((1, self.shape[1]), dtype=self.dtype)
    for j in range(self.shape[1]):
        out[(0, j)] = self[(i, j)]
    return out
