Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

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
>
>



  • Prev by Date: RE: General--Another Trigonometric Problem....NEED HELP
  • Next by Date: Advanced nonlinear integro-differential equation
  • Previous by thread: SparseArray error
  • Next by thread: use a function within a new function