jeudi 23 mai 2019

Comparison operators in Eigen C++: what is the output type?

I have a vector V consisting some zero and non-zero entries. I would like to know what is the type of I, defined as follows:

auto I=V.array()>0;

For now, I always use auto, but I would prefer considering the right type before compilation. I have tried VectorXd, VectorXi, but it does not work. Any ideas?

Aucun commentaire:

Enregistrer un commentaire