maxCoeff() returns -nan instead of max, while maxCoeff(&maxRow, &maxCol) works
Submitted by Karl
Assigned to Nobody
I've got code that for reasons (well, errors i think) ends up leaving some "-nan" in a matrix I'm searching for max values in. But the two "maxCoeff(**)" calls return different values....
Not sure which version of Eigen is installed (one of the 3's I think) since I didn't do it.
When I call:
smAry looks like (when output with cout<<smAry):
0 4 3 -nan
4 -nan 5 3
3 5 0 5
0 3 5 -nan
Output in mymax from first:
Output in mymax from 2nd command