adrhill / SparseConnectivityTracer.jl

Fast operator-overloading Jacobian & Hessian sparsity detection.
MIT License
19 stars 1 forks source link

Support more input types #28

Open adrhill opened 2 months ago

adrhill commented 2 months ago

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.

adrhill commented 1 week ago

A use-case to support for inputs from SparseArrays.jl has come up in #131.