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

4 lines
92 B
C++

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