Bug 16470 - logspace_sum should map to Rf_logspace_sum and its first argument should be const
Summary: logspace_sum should map to Rf_logspace_sum and its first argument should be c...
Status: CLOSED FIXED
Alias: None
Product: R
Classification: Unclassified
Component: Low-level (show other bugs)
Version: R 3.2.1
Hardware: Other Other
: P5 normal
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2015-07-13 15:18 UTC by Bill Dunlap
Modified: 2015-12-14 13:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).