MathGroup Archive 2009

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

Search the Archive

SparseArray Storage Format Real32

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96842] SparseArray Storage Format Real32
  • From: Raffy <raffy at mac.com>
  • Date: Thu, 26 Feb 2009 07:53:12 -0500 (EST)

I have a sparse tensor, dimensions {n, n, n+1}.  The elements are
machine reals.

The elements, ranked by average density: 0, 85%; -10, 10%; and 10, 1%;
the remainder are unique.

Is there a good format available to save this type of data?
I was just about to write a quick ArrayRules to RaffyForm function,
but I figured there should be other Sparse Array formats.
Neither .mtx nor .rua were helpful.  Get[] is extremely slow.

Example Data: RandomChoice[{85, 10, 1, 4} -> {0, -10, 10, 1}, {100,
100, 101}] /. {1 :> RandomReal[]}



  • Prev by Date: newbie: diff equation
  • Next by Date: Re: Creating TOC with Mathematica 7
  • Previous by thread: Re: newbie: diff equation
  • Next by thread: Nested list transformations