mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add truncation op
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
d5524fc57b
commit
fb95e90f7f
3
doc/snippets/Cwise_trunc.cpp
Normal file
3
doc/snippets/Cwise_trunc.cpp
Normal file
@@ -0,0 +1,3 @@
|
||||
ArrayXd v = ArrayXd::LinSpaced(7, -2, 2);
|
||||
cout << v << endl << endl;
|
||||
cout << trunc(v) << endl;
|
||||
Reference in New Issue
Block a user