From 01572b9f54e769a7d1bb3d5073c264a5fbc7ce42 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 10 Mar 2008 17:23:11 +0000 Subject: big change: MatrixBase only takes one template parameter "Derived", the template parameter "Scalar" is removed. This is achieved by introducting a template struct Scalar to achieve a forward-declaration of the Scalar typedefs. --- doc/examples/class_CwiseBinaryOp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/examples/class_CwiseBinaryOp.cpp') diff --git a/doc/examples/class_CwiseBinaryOp.cpp b/doc/examples/class_CwiseBinaryOp.cpp index f5439a434..ae634a041 100644 --- a/doc/examples/class_CwiseBinaryOp.cpp +++ b/doc/examples/class_CwiseBinaryOp.cpp @@ -9,9 +9,9 @@ struct CwiseMinOp EIGEN_EMPTY_STRUCT { }; // define a custom binary operator between two matrices -template +template const Eigen::CwiseBinaryOp -cwiseMin(const MatrixBase &mat1, const MatrixBase &mat2) +cwiseMin(const MatrixBase &mat1, const MatrixBase &mat2) { return Eigen::CwiseBinaryOp(mat1.asArg(), mat2.asArg()); } -- cgit v1.2.3