

def __new__(cls, mat):
    mat = sympify(mat)
    if (not mat.is_Matrix):
        raise TypeError(('Input to Determinant, %s, not a matrix' % str(mat)))
    if (not mat.is_square):
        raise ShapeError('Det of a non-square matrix')
    return Basic.__new__(cls, mat)

dataset/ETHPy150Open sympy/sympy/sympy/matrices/expressions/determinant.py Determinant.__new__/original