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_all.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_all.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_all.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/snippets/MatrixBase_all.cpp b/doc/snippets/MatrixBase_all.cpp index 4a39e21ad..46f26f189 100644 --- a/doc/snippets/MatrixBase_all.cpp +++ b/doc/snippets/MatrixBase_all.cpp @@ -1,7 +1,7 @@ Vector3f boxMin(Vector3f::Zero()), boxMax(Vector3f::Ones()); -Vector3f p0 = Vector3f::Random(), p1 = Vector3f::Random().cwise().abs(); +Vector3f p0 = Vector3f::Random(), p1 = Vector3f::Random().cwiseAbs(); // let's check if p0 and p1 are inside the axis aligned box defined by the corners boxMin,boxMax: cout << "Is (" << p0.transpose() << ") inside the box: " - << ((boxMin.cwise()<p0).all() && (boxMax.cwise()>p0).all()) << endl; + << ((boxMin.array()<p0.array()).all() && (boxMax.array()>p0.array()).all()) << endl; cout << "Is (" << p1.transpose() << ") inside the box: " - << ((boxMin.cwise()<p1).all() && (boxMax.cwise()>p1).all()) << endl; + << ((boxMin.array()<p1.array()).all() && (boxMax.array()>p1.array()).all()) << endl; |