Re: [eigen] Complex symmetric Cholesky factorization |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
We already have a SelfAdjoint and Symmetric enums to distinguish between the two cases, so perhaps an idea would be to allow to pass Symmetric to the second template parameter, like:[Simplicial]L[D]LT<MatrixType, {{Lower,Upper,Lower|Upper}[|Symmetric] , Symmetric}>I don't quite follow your notation here for the Symmetric enum, did you mean one of those to be SelfAdjoint as written?
Actually, this solution is already the one we adopted for PardisoLLT<> and PardisoLDLT<>.I'll take a look at that. I'll try and make a branch achieving this and will let you know when I have something that can be reviewed.
In a second time, for consistency, we should also add a symmetricView<>() method to [Sparse]MatrixBase<> returning a SelfAdjointView<...,{Upper,Lower}[|Symmetric]>. Likewise, we could also think about adding templated variants of adjoint() / selfadjointView() to ease writing generic code with true compile-time branches...I don't have enough familiarity with the sparse internals to know how difficult this part will be. I'll start with the above.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |