Files
huoyi_deploy/third_party/eigen/doc/snippets/Cwise_trunc.cpp
T
2026-10-22 09:23:54 +08:00

4 lines
95 B
C++

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