Skip to content

Vectorization #13

@rstub

Description

@rstub

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:

  1. 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.

  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions