Function lupnt::cheby_eval_ad¶
Defined in File spice_cheby.cc
Function Documentation¶
-
Vec2 lupnt::cheby_eval_ad(Real x, double *scale, double *coeff, long num)¶
Autodiff (
Real) counterpart ofcheby_eval.Used by
ChebyshevFitModel::Eval(lupnt/numerics/cheby_fit.h) to evaluate fitted Chebyshev models — e.g. SPICE-fitted Earth-orientation parameters / lunar libration angles (InitFrameConversionFromSpice) andGnssConstellation’s fitted ECI ephemeris — while preserving exact analytic time derivatives throughx’s autodiff seed.- Parameters:
x – Evaluation point (e.g. epoch [s past J2000])
scale –
{midpoint, radius}of the valid interval forxcoeff – Chebyshev coefficients, constant term first, length
numnum – Number of coefficients (polynomial degree + 1)
- Returns:
(value, derivative)of the polynomial atx