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 /Eigen/src/Core/Fuzzy.h | |
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 'Eigen/src/Core/Fuzzy.h')
-rw-r--r-- | Eigen/src/Core/Fuzzy.h | 16 |
1 files changed, 8 insertions, 8 deletions
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<typename Scalar, typename Derived> +template<typename Derived> template<typename OtherDerived> -bool MatrixBase<Scalar, Derived>::isApprox( +bool MatrixBase<Derived>::isApprox( const OtherDerived& other, typename NumTraits<Scalar>::Real prec ) const @@ -71,10 +71,10 @@ bool MatrixBase<Scalar, Derived>::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<Scalar, OtherDerived>&, RealScalar) const + * \sa isApprox(), isMuchSmallerThan(const MatrixBase<OtherDerived>&, RealScalar) const */ -template<typename Scalar, typename Derived> -bool MatrixBase<Scalar, Derived>::isMuchSmallerThan( +template<typename Derived> +bool MatrixBase<Derived>::isMuchSmallerThan( const typename NumTraits<Scalar>::Real& other, typename NumTraits<Scalar>::Real prec ) const @@ -102,10 +102,10 @@ bool MatrixBase<Scalar, Derived>::isMuchSmallerThan( * * \sa isApprox(), isMuchSmallerThan(const RealScalar&, RealScalar) const */ -template<typename Scalar, typename Derived> +template<typename Derived> template<typename OtherDerived> -bool MatrixBase<Scalar, Derived>::isMuchSmallerThan( - const MatrixBase<Scalar, OtherDerived>& other, +bool MatrixBase<Derived>::isMuchSmallerThan( + const MatrixBase<OtherDerived>& other, typename NumTraits<Scalar>::Real prec ) const { |