Ripser includes several compile-time options that ideally would be made available to R users. I can see two naïve ways that this could definitely be done, neither appropriate:
- Turn "on" each of the options in the source code, incurring their cumulative additional cost to all R executions.
- Duplicate the source code for each desired combination of settings and (internally) export separate functions to be called according to parameters passed to the user-facing R function.
I wonder if either of the following is instead possible:
3. Allow users to control these options at installation or (far preferable) at loading.
4. Iterate compilation of the source code over each desired combination of settings to produce separate compiled functions to serve as in (2).
I searched through much of the {Rcpp} documentation and SO exchanges and found no insight into this issue.
Ripser includes several compile-time options that ideally would be made available to R users. I can see two naïve ways that this could definitely be done, neither appropriate:
I wonder if either of the following is instead possible:
3. Allow users to control these options at installation or (far preferable) at loading.
4. Iterate compilation of the source code over each desired combination of settings to produce separate compiled functions to serve as in (2).
I searched through much of the {Rcpp} documentation and SO exchanges and found no insight into this issue.