-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Currently only day_of_week is vectorized. Methods like swe_calc or swe_fixstar take two arguments that could be used for vectorization: the date and the object. From my point of view one cannot rule out either of these arguments for vectorization. So for a simple interface that stays close to the C API I can imagine two extensions. In both cases the returned coordinates will form a NumericMatrix instead of a NumericVector and both date and object are of appropriate vector type:
-
Only one of the arguments date and object is allowed to have length > 1. So one can either compute many objects for one date or one object for many dates.
-
Both arguments date and object must have the same length. The n. position corresponds to the n. date and n. object.
@vreijs Which form do you think is most useful?