'Delete the given row.
Examples
>>> from sympy.matrices import eye
>>> M = eye(3)
>>> M.row_del(1)
>>> M
Matrix([
[1, 0, 0],
[0, 0, 1]])
See Also
row
col_del'

def row_del(self, i):

    if ((i < (- self.rows)) or (i >= self.rows)):
        raise IndexError(("Index    out    of    range:    'i    =    %s',    valid    -%s    <=    i    <    %s" % (i, self.rows, self.rows)))
    if (i < 0):
        i += self.rows
    del self._mat[(i * self.cols):((i + 1) * self.cols)]
    self.rows -= 1
