(self)
return sign*poly[-1]
Computes determinant using Berkowitz method.

        See Also
        ========

        det
        berkowitz
Computes determinant using Berkowitz method.
Computes determinant using Berkowitz method .
def berkowitz_det(self):
        """Computes determinant using Berkowitz method.

        See Also
        ========

        det
        berkowitz
        """
        if not self.is_square:
            raise NonSquareMatrixError()
        if not self:
            return S.One
        poly = self.berkowitz()[-1]
        sign = (-1)**(len(poly) - 1)
        return sign*poly[-1]
def berkowitz_det ( self ) : if not self . is_square : raise NonSquareMatrixError ( ) if not self : return S . One poly = self . berkowitz ( ) [ - 1 ] sign = ( - 1 ) ** ( len ( poly ) - 1 ) return sign * poly [ - 1 ]