(self, method="bareis")
Computes the matrix determinant using the method "method".

        Possible values for "method":
          bareis ... det_bareis
          berkowitz ... berkowitz_det
          det_LU ... det_LU_decomposition

        See Also
        ========

        det_bareis
        berkowitz_det
        det_LU
Computes the matrix determinant using the method "method".
Computes the matrix determinant using the method method .
def det(self, method="bareis"):
        """Computes the matrix determinant using the method "method".

        Possible values for "method":
          bareis ... det_bareis
          berkowitz ... berkowitz_det
          det_LU ... det_LU_decomposition

        See Also
        ========

        det_bareis
        berkowitz_det
        det_LU
        """

        # if methods were made internal and all determinant calculations
        # passed through here, then these lines could be factored out of
        # the method routines
        if not self.is_square:
            raise NonSquareMatrixError()
        if not self:
            return S.One
        if method == "bareis":
            return self.det_bareis()
        elif method == "berkowitz":
            return self.berkowitz_det()
        elif method == "det_LU":
            return self.det_LU_decomposition()
        else:
            raise ValueError("Determinant method '%s' unrecognized" % method)
def det ( self , method = "bareis" ) : # if methods were made internal and all determinant calculations # passed through here, then these lines could be factored out of # the method routines if not self . is_square : raise NonSquareMatrixError ( ) if not self : return S . One if method == "bareis" : return self . det_bareis ( ) elif method == "berkowitz" : return self . berkowitz_det ( ) elif method == "det_LU" : return self . det_LU_decomposition ( ) else : raise ValueError ( "Determinant method '%s' unrecognized" % method )