From 6f09d3a67d333d68e7c971147ec77600e86e93f3 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Tue, 8 Jul 2008 07:56:01 +0000 Subject: - many updates after Cwise change - fix compilation in product.cpp with std::complex - fix bug in MatrixBase::operator!= --- doc/examples/class_CwiseBinaryOp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doc/examples/class_CwiseBinaryOp.cpp') diff --git a/doc/examples/class_CwiseBinaryOp.cpp b/doc/examples/class_CwiseBinaryOp.cpp index 52d65ab2b..7dc8ef762 100644 --- a/doc/examples/class_CwiseBinaryOp.cpp +++ b/doc/examples/class_CwiseBinaryOp.cpp @@ -7,12 +7,11 @@ using namespace std; template struct MakeComplexOp EIGEN_EMPTY_STRUCT { typedef complex result_type; complex operator()(const Scalar& a, const Scalar& b) const { return complex(a,b); } - enum { Cost = 0 }; }; int main(int, char**) { Matrix4d m1 = Matrix4d::random(), m2 = Matrix4d::random(); - cout << m1.cwise(m2, MakeComplexOp()) << endl; + cout << m1.binaryExpr(m2, MakeComplexOp()) << endl; return 0; } -- cgit v1.2.3