(self, rhs)
return self._upper_triangular_solve(rhs)
Solves Ax = B, where A is an upper triangular matrix.

        See Also
        ========

        lower_triangular_solve
        cholesky_solve
        diagonal_solve
        LDLsolve
        LUsolve
        QRsolve
        pinv_solve
Solves Ax = B, where A is an upper triangular matrix.
Solves Ax = B where A is an upper triangular matrix .
def upper_triangular_solve(self, rhs):
        """Solves Ax = B, where A is an upper triangular matrix.

        See Also
        ========

        lower_triangular_solve
        cholesky_solve
        diagonal_solve
        LDLsolve
        LUsolve
        QRsolve
        pinv_solve
        """
        if not self.is_square:
            raise NonSquareMatrixError("Matrix must be square.")
        if rhs.rows != self.rows:
            raise TypeError("Matrix size mismatch.")
        if not self.is_upper:
            raise TypeError("Matrix is not upper triangular.")
        return self._upper_triangular_solve(rhs)
def upper_triangular_solve ( self , rhs ) : if not self . is_square : raise NonSquareMatrixError ( "Matrix must be square." ) if rhs . rows != self . rows : raise TypeError ( "Matrix size mismatch." ) if not self . is_upper : raise TypeError ( "Matrix is not upper triangular." ) return self . _upper_triangular_solve ( rhs )