Skip to content

obtain the coefficients of the indices for a row/colwise call to maxCoeff

Submitted by aba..@..il.com

Assigned to Nobody

Link to original bugzilla bug (#401)
Version: 3.4 (development)

Description

Reminder for implementing the features requested in this thread:
http://forum.kde.org/viewtopic.php?f=74&t=98384&sid=c5804c453b7e843d4488e7cbb3a2da2f

Basically, it would be nice to be able to get the indices of the min/max in each row in addition to the value

ie:

ArrayXXd test= ArrayXXd::Random(5,5);
ArrayXi inds;
ArrayXd mtest = test.rowwise().maxCoeff(inds);

Depends on

#984

Edited by Eigen Bugzilla