Re: SparseArray error
- To: mathgroup at smc.vnet.net
- Subject: [mg71041] Re: [mg70916] SparseArray error
- From: bsyehuda at gmail.com
- Date: Mon, 6 Nov 2006 02:52:48 -0500 (EST)
- References: <200611010856.DAA01591@smc.vnet.net>
Hi, The counter of Table and Do loops is limited to 32 bit registers for 32 bit machines. For loops, however are not bounded to 32 bits. So using a 64 bit computer or using For loops should solve your problem regards yehuda On 11/1/06, mike <mike.crosier at googlemail.com> wrote: > > Hi, > > I'm trying to set up a hash table-type structure indexed by integers in > the range 1..maxIndex, where maxIndex is potentially very large. > SparseArray[{}, maxIndex] seems to achieve the desired effect when > maxIndex <= 2^31-1, but for 2^31 and larger I'm getting an error: > > SparseArray::dims: The dimensions 2147483648 in SparseArray[{}, > 2147483648] are not a list of positive integers. > > I'm relatively new to Mathematica and haven't come across anything like > this before, so any insight into what might be happening or possible > workarounds would be greatly appreciated. > > Thanks in advance, > Mike > >
- References:
- SparseArray error
- From: "mike" <mike.crosier@googlemail.com>
- SparseArray error