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

def col_del(self, i):

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