eigen/doc/snippets/Cwise_round.cpp
2015-03-17 03:40:28 +10:00

4 lines
93 B
C++

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