diff options
author | Thomas Capricelli <orzel@freehackers.org> | 2010-05-21 01:39:33 +0200 |
---|---|---|
committer | Thomas Capricelli <orzel@freehackers.org> | 2010-05-21 01:39:33 +0200 |
commit | 2ab446695b18cf4fe97f4d97bc9979efec38db8d (patch) | |
tree | 88435446b11c0bd4e870a5cef5fa8ec1f027c1e2 /Eigen | |
parent | 17d080edf21f316ed82abc24cd068f002f2d7838 (diff) |
fix some compilation issues with clang (and hopefully bring eigen more
close to std ?)
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/CwiseNullaryOp.h | 14 | ||||
-rw-r--r-- | Eigen/src/Core/DenseBase.h | 2 | ||||
-rw-r--r-- | Eigen/src/Core/DenseCoeffsBase.h | 2 | ||||
-rw-r--r-- | Eigen/src/Core/TriangularMatrix.h | 1 |
4 files changed, 10 insertions, 9 deletions
diff --git a/Eigen/src/Core/CwiseNullaryOp.h b/Eigen/src/Core/CwiseNullaryOp.h index 4fce5ec09..bb44703cf 100644 --- a/Eigen/src/Core/CwiseNullaryOp.h +++ b/Eigen/src/Core/CwiseNullaryOp.h @@ -184,7 +184,7 @@ template<typename Derived> EIGEN_STRONG_INLINE const typename DenseBase<Derived>::ConstantReturnType DenseBase<Derived>::Constant(int rows, int cols, const Scalar& value) { - return NullaryExpr(rows, cols, ei_scalar_constant_op<Scalar>(value)); + return DenseBase<Derived>::NullaryExpr(rows, cols, ei_scalar_constant_op<Scalar>(value)); } /** \returns an expression of a constant matrix of value \a value @@ -206,7 +206,7 @@ template<typename Derived> EIGEN_STRONG_INLINE const typename DenseBase<Derived>::ConstantReturnType DenseBase<Derived>::Constant(int size, const Scalar& value) { - return NullaryExpr(size, ei_scalar_constant_op<Scalar>(value)); + return DenseBase<Derived>::NullaryExpr(size, ei_scalar_constant_op<Scalar>(value)); } /** \returns an expression of a constant matrix of value \a value @@ -223,7 +223,7 @@ EIGEN_STRONG_INLINE const typename DenseBase<Derived>::ConstantReturnType DenseBase<Derived>::Constant(const Scalar& value) { EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived) - return NullaryExpr(RowsAtCompileTime, ColsAtCompileTime, ei_scalar_constant_op<Scalar>(value)); + return DenseBase<Derived>::NullaryExpr(RowsAtCompileTime, ColsAtCompileTime, ei_scalar_constant_op<Scalar>(value)); } /** @@ -246,7 +246,7 @@ EIGEN_STRONG_INLINE const typename DenseBase<Derived>::SequentialLinSpacedReturn DenseBase<Derived>::LinSpaced(Sequential_t, const Scalar& low, const Scalar& high, int size) { EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived) - return NullaryExpr(size, ei_linspaced_op<Scalar,false>(low,high,size)); + return DenseBase<Derived>::NullaryExpr(size, ei_linspaced_op<Scalar,false>(low,high,size)); } /** @@ -266,7 +266,7 @@ EIGEN_STRONG_INLINE const typename DenseBase<Derived>::RandomAccessLinSpacedRetu DenseBase<Derived>::LinSpaced(const Scalar& low, const Scalar& high, int size) { EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived) - return NullaryExpr(size, ei_linspaced_op<Scalar,true>(low,high,size)); + return DenseBase<Derived>::NullaryExpr(size, ei_linspaced_op<Scalar,true>(low,high,size)); } /** \returns true if all coefficients in this matrix are approximately equal to \a value, to within precision \a prec */ @@ -640,7 +640,7 @@ template<typename Derived> EIGEN_STRONG_INLINE const typename MatrixBase<Derived>::IdentityReturnType MatrixBase<Derived>::Identity(int rows, int cols) { - return NullaryExpr(rows, cols, ei_scalar_identity_op<Scalar>()); + return DenseBase<Derived>::NullaryExpr(rows, cols, ei_scalar_identity_op<Scalar>()); } /** \returns an expression of the identity matrix (not necessarily square). @@ -658,7 +658,7 @@ EIGEN_STRONG_INLINE const typename MatrixBase<Derived>::IdentityReturnType MatrixBase<Derived>::Identity() { EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived) - return NullaryExpr(RowsAtCompileTime, ColsAtCompileTime, ei_scalar_identity_op<Scalar>()); + return MatrixBase<Derived>::NullaryExpr(RowsAtCompileTime, ColsAtCompileTime, ei_scalar_identity_op<Scalar>()); } /** \returns true if *this is approximately equal to the identity matrix diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index e72217c40..796623637 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -83,7 +83,7 @@ template<typename Derived> class DenseBase using Base::outerStride; using Base::rowStride; using Base::colStride; - using Base::CoeffReturnType; + using typename Base::CoeffReturnType; #endif // not EIGEN_PARSED_BY_DOXYGEN diff --git a/Eigen/src/Core/DenseCoeffsBase.h b/Eigen/src/Core/DenseCoeffsBase.h index ce9578838..ccf959b86 100644 --- a/Eigen/src/Core/DenseCoeffsBase.h +++ b/Eigen/src/Core/DenseCoeffsBase.h @@ -241,7 +241,7 @@ class DenseCoeffsBase<Derived, true> : public DenseCoeffsBase<Derived, false> typedef DenseCoeffsBase<Derived, false> Base; typedef typename ei_traits<Derived>::Scalar Scalar; - using Base::CoeffReturnType; + using typename Base::CoeffReturnType; using Base::coeff; using Base::rows; using Base::cols; diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 2230680d1..e6599f9c8 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -152,6 +152,7 @@ template<typename _MatrixType, unsigned int _Mode> class TriangularView typedef typename MatrixType::PlainObject DenseMatrixType; typedef typename MatrixType::Nested MatrixTypeNested; typedef typename ei_cleantype<MatrixTypeNested>::type _MatrixTypeNested; + using TriangularBase<TriangularView<_MatrixType, _Mode> >::evalToLazy; enum { Mode = _Mode, |