How to store ojalgo sparse array to file in java?
问题 I currently have a SparseStore matrix on which I perform a lot of counting and calculations. I want to store it to file, so I can later reuse it without re-doing all previous calculations. I tried basic serialization in Java: ObjectOutputStream outputStream = new ObjectOutputStream(new FileOutputStream(exportFileName)); outputStream.writeObject(mySparseStoreInstance); but it seems the class doesn't implement java.io.Serializable: java.io.NotSerializableException: org.ojalgo.matrix.store