aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/MatrixBase.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-08 07:56:01 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-08 07:56:01 +0000
commit6f09d3a67d333d68e7c971147ec77600e86e93f3 (patch)
tree36095d2bb12c0b02b9688775f60ee5531d2b0372 /Eigen/src/Core/MatrixBase.h
parentf5791eeb7054b78ded6eb080e9712651da6c6a34 (diff)
- many updates after Cwise change
- fix compilation in product.cpp with std::complex - fix bug in MatrixBase::operator!=
Diffstat (limited to 'Eigen/src/Core/MatrixBase.h')
-rw-r--r--Eigen/src/Core/MatrixBase.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h
index 95c188621..26f05738f 100644
--- a/Eigen/src/Core/MatrixBase.h
+++ b/Eigen/src/Core/MatrixBase.h
@@ -30,7 +30,8 @@
* \brief Base class for all matrices, vectors, and expressions
*
* This class is the base that is inherited by all matrix, vector, and expression
- * types. Most of the Eigen API is contained in this class.
+ * types. Most of the Eigen API is contained in this class. Other important classes for
+ * the Eigen API are Matrix, Cwise, and Part.
*
* \param Derived is the derived type, e.g. a matrix type, or an expression, etc.
*
@@ -422,11 +423,11 @@ template<typename Derived> class MatrixBase
template<typename OtherDerived>
inline bool operator==(const MatrixBase<OtherDerived>& other) const
- { return derived().cwiseEqualTo(other.derived()).all(); }
+ { return (cwise() == other).all(); }
template<typename OtherDerived>
inline bool operator!=(const MatrixBase<OtherDerived>& other) const
- { return derived().cwiseNotEqualTo(other.derived()).all(); }
+ { return (cwise() != other).any(); }
template<typename NewType>