Full_Name: Lodewijk Bonebakker
Version: v2.6.2
OS: Solaris, x86, snv_80
Submission from: (NULL) (192.18.43.225)


when I build R in 32-bit mode on my 64-bit OS, R works as expected:

R version 2.6.2 (2008-02-08)
...
Type 'q()' to quit R.

> m <- matrix(ncol=2,c(1:6))
> 
> m
     [,1] [,2]
[1,]    1    4
[2,]    2    5
[3,]    3    6
> n <- log10(m)
> n
          [,1]      [,2]
[1,] 0.0000000 0.6020600
[2,] 0.3010300 0.6989700
[3,] 0.4771213 0.7781513
> 


On a 64-bit build, uisng *only* the "-m64" to instruct the sun compilers to
generate a 64 bit binary, the following happens (there are no compilation
errors)


R version 2.6.2 (2008-02-08)
...
Type 'q()' to quit R.

> 
>  m <- matrix(ncol=2,c(1:6))
> m
     [,1] [,2]
[1,]    1    4
[2,]    2    5
[3,]    3    6
> n <- log10(m)
Warning message:
In log(1:6, 10) : NaNs produced
> n
            [,1] [,2]
[1,]   0.1428914    0
[2,]  -1.1834403    0
[3,]         NaN    0
>

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to