Re: [eigen] maxCoeff taking reference?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


We chose pointers to emphasise they are out parameters. I would not add overloads taking references but maybe a version returning everything within a struct to be used with C++17 structure bindings?

On Thu, Mar 21, 2019 at 3:27 AM Meng Zhu <meng@xxxxxxxxxxxxx> wrote:
hi, I noticed eigen maxCoeff function (https://eigen.tuxfamily.org/dox/classEigen_1_1DenseBase.html#a784e23ccbb39e7c57b70af386f94f8b5) takes pointers to return the max entry coord, and there is no overload to take reference type. is there a reason to not provide reference access? thanks.

Meng




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/