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