[R] matrix: suspected integer overflow
andreas.krause@pharma.novartis.com
andreas.krause at pharma.novartis.com
Wed May 9 09:39:14 CEST 2001
Is the following a known issue, in particular in terms of message clarity of the latter two?
> matrix(0, 10^8, 10^8)
Error: cannot allocate vector of size 2064896 Kb
> matrix(0, 20, 10^10)
Error in matrix(0, 20, 10^10) : negative length vectors are not allowed
> matrix(0, 10^10, 10^10)
Error: cannot allocate vector of size 0 Kb
# looks better for arrays:
> array (0, c(20, 10^10))
Error: cannot allocate vector of size 4194303 Kb
In addition: Warning message:
inaccurate integer conversion in coercion
>
> array(0, c(10^10, 10^10))
Error: cannot allocate vector of size 4194303 Kb
In addition: Warning message:
inaccurate integer conversion in coercion
> version
_
platform powerpc-ibm-aix4.3.0.0
arch powerpc
os aix4.3.0.0
system powerpc, aix4.3.0.0
status
major 1
minor 2.2
year 2001
month 02
day 26
language R
Best regards,
Andreas Krause
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list