rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
282 stars 42 forks source link

implement some chainrules #513

Open lazarusA opened 1 year ago

lazarusA commented 1 year ago

maybe defining a few chainrules for DD, similar to

https://github.com/mcabbott/AxisKeys.jl/blob/master/src/chainrules.jl

would be useful for a wider adoption of DD.

rafaqz commented 1 year ago

I guess we can just duplicate these tests?

https://github.com/mcabbott/AxisKeys.jl/blob/master/test/_chainrules.jl

I dont understand differentiation or its package ecosystem like invenia people do, but I can copy their code 😅

sethaxen commented 1 year ago

I'd be happy to help with this. While ChainRulesCore was originally intended to be a lightweight dep, it's more commonly now used as a weak dep in an extension.