Fix snippets for operator|| and && by adding pair of parens.

This commit is contained in:
Jitse Niesen 2011-06-03 11:17:08 +01:00
parent 5bc4abc45e
commit 7a61a564ef
3 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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;