search for: altreal_dispatch

Displaying 1 result from an estimated 1 matches for "altreal_dispatch".

2019 Sep 04
0
[ALTREP] What is the meaning of the return value of Is_sorted and No_NA function?
..., it goes to(Real SEXP) ===========coerce.c=========== if(REAL_NO_NA(x)) return FALSE; ITERATE_BY_REGION(x, xD, i, nbatch, double, REAL, { for (int k = 0; k < nbatch; k++) if (ISNAN(xD[k])) return TRUE; }); ===========altrep.c=========== int REAL_NO_NA(SEXP x) { return ALTREP(x) ? ALTREAL_DISPATCH(No_NA, x) : 0; } If the argument x is not an ALTREP, the function will return 0, and a default method will be used, so there is no way to return true without loop over the argument x right now. I hope this could be changed in the future. Best, Jiefei On Tue, Sep 3, 2019 at 2:49 PM Wang Jiefe...