search for: long_vector_support

Displaying 2 results from an estimated 2 matches for "long_vector_support".

2013 Jul 12
1
robustbase compilation problem: probably boneheaded? maybe 32-bit?
...le included from init.c:3: robustbase.h:20: error: redefinition of typedef ?R_xlen_t? /usr/local/lib/R/include/Rinternals.h:69: note: previous declaration of ?R_xlen_t? was here As far as I can see there isn't any junk left over in my systems from previous installs. Rinternals.h has #ifdef LONG_VECTOR_SUPPORT typedef ptrdiff_t R_xlen_t; typedef struct { R_xlen_t lv_length, lv_truelength; } R_long_vec_hdr_t; # define R_XLEN_T_MAX 4503599627370496 # define R_SHORT_LEN_MAX 2147483647 # define R_LONG_VEC_TOKEN -1 #else typedef int R_xlen_t; # define R_XLEN_T_MAX R_LEN_T_MAX #endif while robust...
2017 Aug 27
0
R_xlen_t is an integer type
A recent R devel NEWS item: approx(), spline(), splinefun() and approxfun() also work for long vectors. In current R devel, in function 'approx1' in src/library/stats/src/approx.c and in function 'spline_eval' in src/library/stats/splines.c, in #ifdef LONG_VECTOR_SUPPORT there is a comment "R_xlen_t is double". It is incorrect. In Rinternals.h, in #ifdef LONG_VECTOR_SUPPORT R_xlen_t is defined as ptrdiff_t , an integer type. In function 'approx1' in src/library/stats/src/approx.c, R_xlen_t ij = (i+j) / 2; can be used unconditionally. In functio...