search for: ties_meth

Displaying 4 results from an estimated 4 matches for "ties_meth".

2006 Dec 16
1
max.col oddity
...it can cause subtle bugs (and did for me). Personally, I think the behavior is much nicer with the following patch: --- rplain/R-2.4.0/src/appl/maxcol.c 2006-04-09 18:19:58.000000000 -0400 +++ R-2.4.0/src/appl/maxcol.c 2006-12-14 15:30:56.000000000 -0500 @@ -26,13 +26,14 @@ do_rand = *ties_meth == 1; for (r = 0; r < n_r; r++) { - /* first check row for any NAs and find the largest abs(entry) */ + /* first check row for any NAs and find the largest entry */ large = 0.0; isna = FALSE; for (c = 0; c < *nc; c++) { a = matrix[r + c * n_r];...
2006 Dec 14
0
max.col: bug or just oddity?
...t can cause subtle bugs (and did for me). Personally, I think the behavior is much nicer with the following patch: --- rplain/R-2.4.0/src/appl/maxcol.c 2006-04-09 18:19:58.000000000 -0400 +++ R-2.4.0/src/appl/maxcol.c 2006-12-14 15:30:56.000000000 -0500 @@ -26,13 +26,14 @@ do_rand = *ties_meth == 1; for (r = 0; r < n_r; r++) { - /* first check row for any NAs and find the largest abs(entry) */ + /* first check row for any NAs and find the largest entry */ large = 0.0; isna = FALSE; for (c = 0; c < *nc; c++) { a = matrix[r + c *...
2005 Oct 06
0
R-2.2.0 is released
...ned char * rather than as SEXPs. (Wish of Keith Frost, PR#7853) o The search for symbols in a .C/.Call/... call without a package argument now searches for an enclosing namespace and so finds functions defined within functions in a namespace. o R_max_col() has new (5th) argument '*ties_meth' allowing non-random behavior in the case of ties. o The header files have been rationalized: the BLAS routine LSAME is now declared in BLAS.h not Linpack.h, Applic.h no longer duplicates routines from Linpack.h, and Applic.h is divided into API and non-API sections. o memory.c...
2005 Oct 06
0
R-2.2.0 is released
...ned char * rather than as SEXPs. (Wish of Keith Frost, PR#7853) o The search for symbols in a .C/.Call/... call without a package argument now searches for an enclosing namespace and so finds functions defined within functions in a namespace. o R_max_col() has new (5th) argument '*ties_meth' allowing non-random behavior in the case of ties. o The header files have been rationalized: the BLAS routine LSAME is now declared in BLAS.h not Linpack.h, Applic.h no longer duplicates routines from Linpack.h, and Applic.h is divided into API and non-API sections. o memory.c...