ModelingToolkit.jl icon indicating copy to clipboard operation
ModelingToolkit.jl copied to clipboard

Reexport ADTypes

Open asinghvi17 opened this issue 7 months ago • 3 comments

Is your feature request related to a problem? Please describe.

I’m always frustrated when I have to load ADTypes to specify the AD engine.

Describe the solution you’d like

MTK should @reexport using ADTypes or at least reexport the types.

Describe alternatives you’ve considered

Not really, no

asinghvi17 avatar May 21 '25 16:05 asinghvi17

OrdinaryDiffEqCore instead?

ChrisRackauckas avatar May 21 '25 17:05 ChrisRackauckas

Those types are not in using OrdinaryDiffEqCore

Or do you mean reexporting ADTypes from ODECore instead? Yeah as long as that's reexported here too, that works

asinghvi17 avatar May 21 '25 18:05 asinghvi17

Yes, since the types aren't used by MTK it's a bit odd to reexport them from here. It's the implicit solvers. OrdinaryDiffEq, OrdinaryDiffEqRosenbrock, etc.

Though... it should actually be a lower level detail that most users don't worry about...

ChrisRackauckas avatar May 21 '25 19:05 ChrisRackauckas