search for: mat2indsub

Displaying 3 results from an estimated 3 matches for "mat2indsub".

2005 Apr 29
0
handling of zero and negative indices in src/main/subscript.c:mat2indsub() (PR#7824)
..., c(2,2), c(-3,3))] [1] 1 4 1 > x[rbind(c(1,1), c(2,2), c(-4,3))] [1] 1 4 > > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 1.0 year 2005 month 04 day 18 language R > The followed version of mat2indsub() (to replace the one in src/main/subscript.c) allows zero indices and explicitly disallows all negative indices: /* Special Matrix Subscripting: Handles the case x[i] where */ /* x is an n-way array and i is a matrix with n columns. */ /* This code returns a vector containing the integer subscr...
2005 May 06
0
(PR#7824) handling of zero and negative indices in
...t; > > > version > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 2 > minor 1.0 > year 2005 > month 04 > day 18 > language R > > > > The followed version of mat2indsub() (to replace the one in > src/main/subscript.c) allows zero indices and explicitly disallows all > negative indices: > > /* Special Matrix Subscripting: Handles the case x[i] where */ > /* x is an n-way array and i is a matrix with n columns. */ > /* This code returns a vector co...
2010 Sep 08
0
Correction to vec-subset speed patch
....h (revision 52822) +++ src/include/Defn.h (working copy) @@ -1003,7 +1003,7 @@ void KillAllDevices(void); SEXP levelsgets(SEXP, SEXP); void mainloop(void); -SEXP makeSubscript(SEXP, SEXP, int *, SEXP); +SEXP makeSubscript(SEXP, SEXP, int *, SEXP, int); SEXP markKnown(const char *, SEXP); SEXP mat2indsub(SEXP, SEXP, SEXP); SEXP matchArg(SEXP, SEXP*); Index: src/main/subassign.c =================================================================== --- src/main/subassign.c (revision 52822) +++ src/main/subassign.c (working copy) @@ -448,7 +448,7 @@ } stretch = 1; - PROTECT(indx = makeSu...