search for: lglsxps

Displaying 6 results from an estimated 6 matches for "lglsxps".

Did you mean: lglsxp
2017 Oct 20
1
Illegal Logical Values
I'm wondering if WRE Section 5.2 should be a little more explicit about misuse of integer values other than NA, 0, and 1 in LGLSXPs.? I'm thinking of this passage: > Logical values are sent as 0 (FALSE), 1 (TRUE) or INT_MIN = -2147483648 (NA, but only if NAOK is true), and the compiled code should return one of these three values. (Non-zero values other than INT_MIN are mapped to TRUE.) The parenthetical seems to sugg...
2019 Aug 28
3
What is the best way to loop over an ALTREP vector?
Hi devel team, I'm working on C/C++ level ALTREP compatibility for a package. The package previously used pointers to access the data of a SEXP, so it would not work for some ALTREP objects which do not have a pointer. I plan to rewrite the code and use functions like get_elt, get_region, and get_subset to access the values of a vector, so I have a few questions for ALTREP: 1. Since an
2019 Sep 23
2
What is the best way to loop over an ALTREP vector?
...RInternal.h and altrep.c but did not find a solution for it. If not, >>>> will >>>> it be added in the future? >>>> >>> >>> Element and region are guaranteed to always be defined and work (for >>> altrep and non-altrep INTSXP, REALSXP, LGLSXPs, etc, we currently don't >>> have region for STRSXP or VECSXP, I believe). If the altrep class does not >>> provide them then default methods will be used, which may be inefficient in >>> some cases but will work. Subset is currently a forward looking stub, but >&g...
2019 Sep 23
0
What is the best way to loop over an ALTREP vector?
...class? I did a search on >>> RInternal.h and altrep.c but did not find a solution for it. If not, will >>> it be added in the future? >>> >> >> Element and region are guaranteed to always be defined and work (for >> altrep and non-altrep INTSXP, REALSXP, LGLSXPs, etc, we currently don't >> have region for STRSXP or VECSXP, I believe). If the altrep class does not >> provide them then default methods will be used, which may be inefficient in >> some cases but will work. Subset is currently a forward looking stub, but >> once impl...
2019 Sep 24
2
What is the best way to loop over an ALTREP vector?
...for it. If not, > >>>>> will > >>>>> it be added in the future? > >>>>> > >>>> > >>>> Element and region are guaranteed to always be defined and work (for > >>>> altrep and non-altrep INTSXP, REALSXP, LGLSXPs, etc, we currently > don't > >>>> have region for STRSXP or VECSXP, I believe). If the altrep class > does not > >>>> provide them then default methods will be used, which may be > inefficient in > >>>> some cases but will work. Subset is cu...
2019 Sep 24
0
What is the best way to loop over an ALTREP vector?
...but did not find a solution for it. If not, >>>>> will >>>>> it be added in the future? >>>>> >>>> >>>> Element and region are guaranteed to always be defined and work (for >>>> altrep and non-altrep INTSXP, REALSXP, LGLSXPs, etc, we currently don't >>>> have region for STRSXP or VECSXP, I believe). If the altrep class does not >>>> provide them then default methods will be used, which may be inefficient in >>>> some cases but will work. Subset is currently a forward looking stub...