diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-03-10 17:23:11 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-03-10 17:23:11 +0000 |
commit | 01572b9f54e769a7d1bb3d5073c264a5fbc7ce42 (patch) | |
tree | ea9b9ef0469040e8b8ae0805f77d726c319dfeac /doc/examples/class_CwiseBinaryOp.cpp | |
parent | 9d9d81ad71a52c33ba4db9f8a6059d435d279316 (diff) |
big change: MatrixBase only takes one template parameter "Derived", the
template parameter "Scalar" is removed. This is achieved by introducting a
template <typename Derived> struct Scalar to achieve a forward-declaration of
the Scalar typedefs.
Diffstat (limited to 'doc/examples/class_CwiseBinaryOp.cpp')
-rw-r--r-- | doc/examples/class_CwiseBinaryOp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<typename Scalar, typename Derived1, typename Derived2> +template<typename Derived1, typename Derived2> const Eigen::CwiseBinaryOp<CwiseMinOp, Derived1, Derived2> -cwiseMin(const MatrixBase<Scalar, Derived1> &mat1, const MatrixBase<Scalar, Derived2> &mat2) +cwiseMin(const MatrixBase<Derived1> &mat1, const MatrixBase<Derived2> &mat2) { return Eigen::CwiseBinaryOp<CwiseMinOp, Derived1, Derived2>(mat1.asArg(), mat2.asArg()); } |