diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-01-06 17:18:38 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-01-06 17:18:38 +0100 |
commit | 7d3fe69efff24ff41a81f0bbf3bd4b4906612579 (patch) | |
tree | 7063e4f1483ceba7f8569c397e13d8bf3dc0be6a /doc/snippets/MatrixBase_select.cpp | |
parent | c11300dbd52accc3724300854ede5df4b09ab2a6 (diff) |
Various documentation updates:
- update the tutorial
- update doc of deprecated cwise function
- update cwise doc snippets
Diffstat (limited to 'doc/snippets/MatrixBase_select.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_select.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/snippets/MatrixBase_select.cpp b/doc/snippets/MatrixBase_select.cpp index 54893be1e..ae5477f02 100644 --- a/doc/snippets/MatrixBase_select.cpp +++ b/doc/snippets/MatrixBase_select.cpp @@ -1,6 +1,6 @@ MatrixXi m(3, 3); -m << 1, 2, 3, - 4, 5, 6, +m << 1, 2, 3, + 4, 5, 6, 7, 8, 9; -m = (m.cwise() >= 5).select(-m, m); +m = (m.array() >= 5).select(-m, m); cout << m << endl; |