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. --- Eigen/src/Core/Fuzzy.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Eigen/src/Core/Fuzzy.h') diff --git a/Eigen/src/Core/Fuzzy.h b/Eigen/src/Core/Fuzzy.h index 0d401a9a1..a7a276328 100644 --- a/Eigen/src/Core/Fuzzy.h +++ b/Eigen/src/Core/Fuzzy.h @@ -41,9 +41,9 @@ * * \sa ei_isMuchSmallerThan(const RealScalar&, RealScalar) const */ -template +template template -bool MatrixBase::isApprox( +bool MatrixBase::isApprox( const OtherDerived& other, typename NumTraits::Real prec ) const @@ -71,10 +71,10 @@ bool MatrixBase::isApprox( * \f[ \Vert v \Vert \leqslant p\,\vert x\vert. \f] * For matrices, the comparison is done on all columns. * - * \sa isApprox(), isMuchSmallerThan(const MatrixBase&, RealScalar) const + * \sa isApprox(), isMuchSmallerThan(const MatrixBase&, RealScalar) const */ -template -bool MatrixBase::isMuchSmallerThan( +template +bool MatrixBase::isMuchSmallerThan( const typename NumTraits::Real& other, typename NumTraits::Real prec ) const @@ -102,10 +102,10 @@ bool MatrixBase::isMuchSmallerThan( * * \sa isApprox(), isMuchSmallerThan(const RealScalar&, RealScalar) const */ -template +template template -bool MatrixBase::isMuchSmallerThan( - const MatrixBase& other, +bool MatrixBase::isMuchSmallerThan( + const MatrixBase& other, typename NumTraits::Real prec ) const { -- cgit v1.2.3