This website requires JavaScript.
Explore
Help
Sign In
devtools
/
eigen
Watch
1
Star
0
Fork
0
You've already forked eigen
mirror of
https://gitlab.com/libeigen/eigen.git
synced
2026-04-10 11:34:33 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
411422f2dcafe63e36cf85d49cf91d8439a44338
eigen
/
doc
/
snippets
/
Cwise_rint.cpp
4 lines
94 B
C++
Raw
Normal View
History
Unescape
Escape
Clang-format tests, examples, libraries, benchmarks, etc.
2023-12-05 21:22:55 +00:00
ArrayXd
v
=
ArrayXd
:
:
LinSpaced
(
7
,
-
2
,
2
)
;
Bug #1785: Introduce numext::rint. 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).
2019-12-16 16:00:35 -05:00
cout
<
<
v
<
<
endl
<
<
endl
;
cout
<
<
rint
(
v
)
<
<
endl
;
Reference in New Issue
Copy Permalink