commit | 7b829940d1ce106f9b83aba63782cb7be689ba5d | [log] [tgz] |
---|---|---|
author | Deanna Hood <deanna.m.hood@gmail.com> | Tue Mar 17 03:40:28 2015 +1000 |
committer | Deanna Hood <deanna.m.hood@gmail.com> | Tue Mar 17 03:40:28 2015 +1000 |
tree | f901d47c0e076c15997451ce03a42675d9133b1a | |
parent | 1d76ceab551e1918bb049f473fc9a57f90dee028 [diff] [blame] |
Add code snippets for new methods
diff --git a/doc/snippets/Cwise_round.cpp b/doc/snippets/Cwise_round.cpp new file mode 100644 index 0000000..e5c8823 --- /dev/null +++ b/doc/snippets/Cwise_round.cpp
@@ -0,0 +1,3 @@ +ArrayXd v = ArrayXd::LinSpaced(7,-2,2); +cout << v << endl << endl; +cout << round(v) << endl;