Registered Member
|
I'm trying to do
if( (a > b).any() ) specifically if( (Eigen::Matrix<float, Eigen::Dynamic, 1> > float).any() ) and the compiler is complaining that no operator was found which takes those arguments. Am I doing this wrong? MSVC 9 SP1 Eigen devel rev 3937 JM |
Moderator
|
comparison operator are not directly available for matrices, you have to view your matrix as an array:
(a.array() > 2).any() |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora