Displaying 2 results from an estimated 2 matches for "sort2".
Did you mean:
sort
2002 Sep 06
1
Installing splancs_2.01-9 on Red Hat Linux 7.3
...lowing error message during the install:
[snip]
g77 -fPIC -O2 -m486 -fno-strength-reduce -g -c weight.f -o weight.o
gcc -shared -o splancs.so areapl.o cncvwt.o dokhat.o inpip.o ipippa.o
iplace.o k12hat.o kernel3d.o khvc.o khvmat.o krnnrm.o krnqne.o krnqrt.o
nndist.o plarea.o ptinpoly.o sekhat.o sort2.o sort.o stkhat.o stsecal.o
tribble.o twodimmse.o weight.o -L/usr/local/lib
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../.. -lreadline -ldl
-lncurses -lg2c -lm -L/usr/lib/R/bin -lR
/usr/bin/ld: cannot find -lreadline
collect2: ld returned 1 exit status...
2019 Jan 21
0
orderVector1 (sort.c): Tiny improvement concerning nalast
...if you rewrite/duplicate this 'switch' block (line 1079) for the case nalast==false, you should be able to avoid the loop of line 1105.
Best regards,
Emilio
*** /home/emilio/Descargas/R-3.5.2/src/main/sort.c 2018-11-07 00:15:02.000000000 +0100
--- /home/emilio/Descargas/R-3.5.2/src/main/sort2.c 2019-01-21 11:13:07.414332755 +0100
***************
*** 1079,1099 ****
switch (TYPEOF(key)) {
case LGLSXP:
case INTSXP:
! for (i = 0; i < n; i++) isna[i] = (ix[i] == NA_INTEGER);
! break;
case REALSXP:
! for (i = 0; i < n; i++) isna[i] = ISNAN(x[i]);
! break;...