Re: [eigen] On a flexible API for submatrices, slicing, indexing, masking, etc. |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Just want to throw this out to see if people are interested.
The main trick worth mentioning is that first(2) produces a struct, whereas first<2> produces a (templated) function pointer. By dispatching based on types, I can support both, as I hate to write first<2>(). I learned this trick from the recent C++ proposal on using in_place_t for optionals and variants.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |