From murdoch.duncan at gmail.com  Sun Jan  5 21:41:18 2014
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Sun, 05 Jan 2014 15:41:18 -0500
Subject: [Rd] Support for long arrays
In-Reply-To: <9D80368C6A00834189C1982FB64EFA3007EE9002@ORD2MBX07C.mex05.mlsrvr.com>
References: <9D80368C6A00834189C1982FB64EFA3007EE9002@ORD2MBX07C.mex05.mlsrvr.com>
Message-ID: <52C9C36E.6030903@gmail.com>

On 14-01-05 3:18 PM, Boris Aronshtam wrote:
> My machine has hundreds of GB of RAM.  Is there a way to create an array having more than 2 Billion (2^31) rows?

Not currently.  Individual dimensions are limited to signed 32 bit 
values.  The overall count of elements is limited to 2^52 or so.

Duncan Murdoch

>
> I am trying to create a large array using:
>
> d = c(1e+10,2)
> a=array(0,d)
>
> This results in the error:
>
> Error in array(0, d) : negative length vectors are not allowed
> In addition: Warning message:
> In array(0, d) : NAs introduced by coercion
>
> Note that I can create a vector of the same large size:
>
> v=c(1:2e+10)
>
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Support for long arrays
Duncan Murdoch