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

SparseArray error

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70916] SparseArray error
  • From: "mike" <mike.crosier at googlemail.com>
  • Date: Wed, 1 Nov 2006 03:56:10 -0500 (EST)

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: a slightly unexpected case of General::spell1
  • Next by Date: use a function within a new function
  • Previous by thread: Re: a slightly unexpected case of General::spell1
  • Next by thread: Re: SparseArray error