@polyvar does not allow two-dimensional variables

This is possible with DynamicPolynomials but not yet with TypedPolynomials.
The reason for this is that different variables have different types for TypedPolynomials so the @polyvar macro returns a tuple. In DynamicPolynomials, all variables have the same type so th macro returns an Array.

1 Like