adrhill / SparseConnectivityTracer.jl

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

Shared sets and sets with shared objects #107

Closed gdalle closed 2 months ago

gdalle commented 4 months ago

To avoid excessive allocations in Hessian tracing, we can make a new set type holding a reference to a shared set, such that every intermediate scalar quantity shares the same pattern (as opposed to having individual patterns).

This would require:

Note that such shared objects would also be useful to implement tape-based recursive sets

gdalle commented 4 months ago

From the testing perspective, we would need to add functions with dead ends to highlight the differences:

adrhill commented 2 months ago

Added in #135.