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.