Your p0 is a vector, which means the “…” operator doesn’t know how many arguments there are, which means it dispatches to an unknown method of f, which means type instability. Change p0 to a tuple and you solve the issue.
2 Likes