mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
19876ced76
This provides a new op that matches std::rint and previous behavior of pround. Also adds corresponding unsupported/../Tensor op. Performance is the same as e. g. floor (tested SSE/AVX).
4 lines
92 B
C++
4 lines
92 B
C++
ArrayXd v = ArrayXd::LinSpaced(7,-2,2);
|
|
cout << v << endl << endl;
|
|
cout << rint(v) << endl;
|