julia> g(x, y) = x + y
g (generic function with 1 method)
julia> vars = @variables x y
(x, y)
julia> Contractor(vars, g(vars...))
Contractor in 2 dimensions:
- forward pass contracts to 1 dimensions
- variables: Symbol[:x, :y]
- expression: x + y
julia> Contractor(vars, g)
ERROR: MethodError: no method matching Contractor(::Tuple{Variable,Variable}, ::typeof(g))
We should allow this last syntax.
cc @yashcodes