public void testSparseMatrixnSerializable () throws IOException, ClassNotFoundException
{
SparseMatrixn a = make3dMatrix ();
SparseMatrixn b = (SparseMatrixn) TestSerializable.cloneViaSerialization (a);
assertEquals (a.singleSize(), b.singleSize());
for (int i = 0; i < a.singleSize (); i++) {
int[] idxa = new int [a.getNumDimensions ()];
int[] idxb = new int [a.getNumDimensions ()];
a.singleToIndices (i, idxa);