double[][] matrix1 = new double[][] { { 0.1, 0.2, 0.8, 0.5 },
{ 0.3, 0.4, 0.6, 0.2 }, { 0.5, 0.6, 0.1, 0.5 } };
double[][] matrix2 = new double[][] { { 0.8, 1.2, 0.5 } };
DoubleMatrix[] matrices = new DoubleMatrix[2];
matrices[0] = new DenseDoubleMatrix(matrix1);
matrices[1] = new DenseDoubleMatrix(matrix2);
double[][] prevMatrix1 = new double[][] { { 0.1, 0.1, 0.2, 0.3 },
{ 0.2, 0.4, 0.1, 0.5 }, { 0.5, 0.1, 0.5, 0.2 } };
double[][] prevMatrix2 = new double[][] { { 0.1, 0.2, 0.5, 0.9 },
{ 0.3, 0.5, 0.2, 0.6 }, { 0.6, 0.8, 0.7, 0.5 } };
DoubleMatrix[] prevMatrices = new DoubleMatrix[2];
prevMatrices[0] = new DenseDoubleMatrix(prevMatrix1);
prevMatrices[1] = new DenseDoubleMatrix(prevMatrix2);
SmallLayeredNeuralNetworkMessage message = new SmallLayeredNeuralNetworkMessage(
error, isConverge, matrices, prevMatrices);
Configuration conf = new Configuration();
String strPath = "/tmp/testReadWriteSmallLayeredNeuralNetworkMessageWithPrev";