0

I have a program where the system matrix within the sparse solver (using the Eigen library) is often the same, and could be precomputed once and loaded as a file. Ideally I would want to serialize the whole solver, but there seems to be no way to do that with Eigen.

I am currently using CholmodSupernodalLLT, so I suppose one way could be to subclass CholmodSupernodalLLT and find a way to serialize cholmod_factor, however I am at a loss on how to serialize this type as well.

I am willing to use other solvers (preferably LLT) or even other libraries if they have this capability.

sordid
  • 177
  • 6
  • If you are using `CholmodSupernodalLLT` then look at Cholmod's userguide to see if Cholmod offers that. If so, then you can indeed subclass `CholmodSupernodalLLT` to easily achieve your goals. – ggael Nov 22 '17 at 21:16
  • Thanks for the reply @ggael, however it does not. Do any of the other Eigen solvers allow for serialization? – sordid Nov 23 '17 at 10:32
  • I ended up writing my own function building on `cholmod_copy_factor` to serialize to a file stream. – sordid Nov 24 '17 at 12:56

0 Answers0