SparseConnectivityTracer currently only works with scalar and array inputs.
Returning the sparsity pattern of a Jacobian requires enumerating index sets for the inputs and outputs. Since this can be done for arbitrarily nested tuples and arrays, we should be able to support them.
The same holds for Hessians, which only require the creation of an index set for the inputs.
SparseConnectivityTracer currently only works with scalar and array inputs.
Returning the sparsity pattern of a Jacobian requires enumerating index sets for the inputs and outputs. Since this can be done for arbitrarily nested tuples and arrays, we should be able to support them. The same holds for Hessians, which only require the creation of an index set for the inputs.