Define VEC_DEF_REAL

Define Documentation

VEC_DEF_REAL(func)

Declare/define a VecX func(const VecX& x) overload that applies a scalar Real func(Real) element-wise.

VEC_DEF_REAL declares the overload (used in headers, e.g. time_conversions.h for UtcToUt1, TaiToTt, etc.); VEC_IMP_REAL defines it (used in the corresponding .cc). Lets time/anomaly conversion functions be applied to a whole vector of epochs/angles at once (in an OpenMP-parallel loop), e.g. converting an entire epoch history from UTC to TAI.