Search code examples
stleigen

Does the implementation of Eigen depend on standard containers?


Eigen is an awesome algebra/matrix computation c++ library and I'm using it in a developing project. But someone told me not to use it because it depends on standard containers, which is doubtful to me. The reason not to use standard containers is complicated and we just ignore it for now. My question is, does eigen's implementation really depends on the standard containers? I've searched on the Eigen homepage but nothing found. Can anyone help me?


Solution

  • I would rather say no as there are only two very marginal use:

    The first one is in IncompleteCholesky where std::vector and std::list are used to hold some temporary objects during the computation, not as member. This class is only used if a user explicitly uses it.

    The second one is in SuperLUSupport module, which is a module to support a third library. Again, you cannot use accidentally!

    The StlSupport module mentioned by Avi is just a helper module to ease the storage of Eigen's matrices within STL containers.