def promote(operator, size):
 return lo.LinOp(lo.PROMOTE, size, [operator], None)

def promote ( operator , size ) : return lo . LinOp ( lo . PROMOTE , size , [ operator ] , None )
promotes a scalar operator to the given size .