Define VEC_DEF_VECTOR_REAL

Define Documentation

VEC_DEF_VECTOR_REAL(func, size)

Declare/define batch overloads of a Vec<size> func(const Vec<size>&, Real) conversion (e.g. classical orbital elements <-> Cartesian state, which additionally depend on a scalar parameter such as GM): a fixed state with a vector of scalars (Mat<-1,size> func(Vec<size>, VecX)), a batch of states with one shared scalar (Mat<-1,size> func(Mat<-1,size>, Real)), and a batch of states each paired with its own scalar (Mat<-1,size> func(Mat<-1,size>, VecX)).

VEC_DEF_VECTOR_REAL declares these (e.g. state_conversions.h’s ClassicalToCart, CartToClassical, ClassicalToEquinoctial, …); VEC_IMP_VECTOR_REAL defines them.