(p)
return p
Butler-Portugal canonicalization
Butler-Portugal canonicalization
Butler - Portugal canonicalization
def canon_bp(p):
    """
    Butler-Portugal canonicalization
    """
    if isinstance(p, TensExpr):
        return p.canon_bp()
    return p
def canon_bp ( p ) : if isinstance ( p , TensExpr ) : return p . canon_bp ( ) return p