MathGroup Archive 2007

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

Search the Archive

problem with DumpSaving SparseArrays in 6.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75656] problem with DumpSaving SparseArrays in 6.0
  • From: Roman <rschmied at gmail.com>
  • Date: Tue, 8 May 2007 05:46:01 -0400 (EDT)

Hello all,
There seems to be a problem with DumpSave and SparseArray in 6.0. If
you DumpSave a simple SparseArray like this:

   A = SparseArray[{2, 3} -> 7, {5, 5}];
   DumpSave["test.mx", A];

then read it back:

<< "test.mx"
A

you get the following output:
   SparseArray[Automatic, {5, 5}, 0, {1, {{0, 0, 1, 1, 1, 1}, {{3}}},
{7}}]

While this is correct in principle, in practice A is now no longer
usable. Try, for example,
   MatrixForm[A]
This will complain, just like any other use of A as a matrix will.

Do you have any idea for a workaround, to convert A back into a usable
matrix?

Thanks!
Roman.



  • Prev by Date: [Mathematica 6] Format->Style sheet->Report. no CELL brackets on the right ! nothing to hold to.
  • Next by Date: Re: [Mathematica 6] Format->Magnification does not work on notebook
  • Previous by thread: [Mathematica 6] Format->Style sheet->Report. no CELL brackets on the right ! nothing to hold to.
  • Next by thread: Re: problem with DumpSaving SparseArrays in 6.0