[R] matrix: suspected integer overflow

About this list Date view Thread view Subject view Author view

From: andreas.krause@pharma.novartis.com
Date: Wed 09 May 2001 - 17:39:14 EST


Message-ID: <OF9F2E040F.1DD84A3A-ONC1256A46.00678455@is.chbs>


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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:41 EST