reactphysics3d/testbed/nanogui/ext/eigen/doc/snippets/Cwise_floor.cpp

4 lines
93 B
C++

ArrayXd v = ArrayXd::LinSpaced(7,-2,2);
cout << v << endl << endl;
cout << floor(v) << endl;