Ideas for fast interpolation - poliastro/poliastro GitHub Wiki
- Refactor interpolation methods from the current Enum + Dict to a proper class with a method
- Those classes have a "raw interpolate" method that doesn't take units
- Cannot inherit from a
@jitclass
we could use composition instead
- Cannot inherit from a
Ephem
takes an interpolation method instance andEphem.sample
calls the correspondinginterpolate
method- We add a (private?) "raw sample" method without error checks that calls the "raw interpolate" method
Notes:
- Try to do this in a way that doesn't feel like a mega hack
- Will we need
Ephem
for thebuild_ephem_interpolant
at all?