|Summary:||logspace_sum should map to Rf_logspace_sum and its first argument should be const|
|Product:||R||Reporter:||Bill Dunlap <wdunlap>|
Description Bill Dunlap 2015-07-13 15:18:11 UTC
The new logspace_sum function is not mapped to Rf_logspace_sum (in include/Rmath.h), which is different than its companions logspace_sub and logspace_add. Also, its first argument is declared 'double*'. In my tests it does not appear to alter the data pointed at so it would be nice to declare it 'const double*'. (I like to use const in my code whenever possible and the lack of const here forces an ugly cast or rewrite of code.)
Comment 1 Brian Ripley 2015-08-12 11:01:33 UTC
Changes in R-devel (to be 3.3.0).