eigen/doc/snippets/Cwise_boolean_and.cpp

3 lines
64 B
C++

Array3d v(-1,2,1), w(-3,2,3);
cout << ((v<w) && (v<0)) << endl;