diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2011-06-03 11:17:08 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2011-06-03 11:17:08 +0100 |
commit | 7a61a564ef7d5403bcf3eef0c84252cc8bf73705 (patch) | |
tree | 2138d2bd9d1621f4a816f890a9148f4367950841 | |
parent | 5bc4abc45e20b862cd1af678d11a19d02d3e2e19 (diff) |
Fix snippets for operator|| and && by adding pair of parens.
-rw-r--r-- | Eigen/src/plugins/ArrayCwiseBinaryOps.h | 4 | ||||
-rw-r--r-- | doc/snippets/Cwise_boolean_and.cpp | 2 | ||||
-rw-r--r-- | doc/snippets/Cwise_boolean_or.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/plugins/ArrayCwiseBinaryOps.h b/Eigen/src/plugins/ArrayCwiseBinaryOps.h index 2bb2064e1..c5eaaa6fa 100644 --- a/Eigen/src/plugins/ArrayCwiseBinaryOps.h +++ b/Eigen/src/plugins/ArrayCwiseBinaryOps.h @@ -149,7 +149,7 @@ operator-(const Scalar& scalar,const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& * Example: \include Cwise_boolean_and.cpp * Output: \verbinclude Cwise_boolean_and.out * - * \sa operator||, select() + * \sa operator||(), select() */ template<typename OtherDerived> inline const CwiseBinaryOp<internal::scalar_boolean_and_op, const Derived, const OtherDerived> @@ -167,7 +167,7 @@ operator&&(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const * Example: \include Cwise_boolean_or.cpp * Output: \verbinclude Cwise_boolean_or.out * - * \sa operator&&, select() + * \sa operator&&(), select() */ template<typename OtherDerived> inline const CwiseBinaryOp<internal::scalar_boolean_or_op, const Derived, const OtherDerived> diff --git a/doc/snippets/Cwise_boolean_and.cpp b/doc/snippets/Cwise_boolean_and.cpp index 081004be4..df6b60d92 100644 --- a/doc/snippets/Cwise_boolean_and.cpp +++ b/doc/snippets/Cwise_boolean_and.cpp @@ -1,2 +1,2 @@ Array3d v(-1,2,1), w(-3,2,3); -cout << (v<w) && (v>0) << endl; +cout << ((v<w) && (v<0)) << endl; diff --git a/doc/snippets/Cwise_boolean_or.cpp b/doc/snippets/Cwise_boolean_or.cpp index e336cf462..83eb0068e 100644 --- a/doc/snippets/Cwise_boolean_or.cpp +++ b/doc/snippets/Cwise_boolean_or.cpp @@ -1,2 +1,2 @@ Array3d v(-1,2,1), w(-3,2,3); -cout << (v<w) || (v<0) << endl; +cout << ((v<w) || (v<0)) << endl; |