diff options
author | 2010-02-03 09:07:17 +0100 | |
---|---|---|
committer | 2010-02-03 09:07:17 +0100 | |
commit | 8861dce7eeac5bf16f28a0d0e3c73cc57abbcf65 (patch) | |
tree | 06192deee994161b5edf64ce7c4d3aeeaed31377 /Eigen/src | |
parent | 7b2dd988faf589ce194002ffffdfa6efca656557 (diff) |
Fixed 32bit builds.
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Core/CwiseNullaryOp.h | 10 | ||||
-rw-r--r-- | Eigen/src/Core/DenseBase.h | 6 | ||||
-rw-r--r-- | Eigen/src/plugins/MatrixCwiseUnaryOps.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/Eigen/src/Core/CwiseNullaryOp.h b/Eigen/src/Core/CwiseNullaryOp.h index f4dd0b695..5800335d7 100644 --- a/Eigen/src/Core/CwiseNullaryOp.h +++ b/Eigen/src/Core/CwiseNullaryOp.h @@ -238,11 +238,11 @@ DenseBase<Derived>::Constant(const Scalar& value) * Example: \include DenseBase_LinSpaced_seq.cpp * Output: \verbinclude DenseBase_LinSpaced_seq.out * - * \sa setLinSpaced(Scalar,Scalar,int), LinSpaced(Scalar,Scalar,int), CwiseNullaryOp + * \sa setLinSpaced(const Scalar&,const Scalar&,int), LinSpaced(Scalar,Scalar,int), CwiseNullaryOp */ template<typename Derived> EIGEN_STRONG_INLINE const typename DenseBase<Derived>::SequentialLinSpacedReturnType -DenseBase<Derived>::LinSpaced(Sequential_t, Scalar low, Scalar high, int size) +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)); @@ -258,11 +258,11 @@ DenseBase<Derived>::LinSpaced(Sequential_t, Scalar low, Scalar high, int size) * Example: \include DenseBase_LinSpaced.cpp * Output: \verbinclude DenseBase_LinSpaced.out * - * \sa setLinSpaced(Scalar,Scalar,int), LinSpaced(Sequential_t,Scalar,Scalar,int), CwiseNullaryOp + * \sa setLinSpaced(const Scalar&,const Scalar&,int), LinSpaced(Sequential_t,const Scalar&,const Scalar&,int), CwiseNullaryOp */ template<typename Derived> EIGEN_STRONG_INLINE const typename DenseBase<Derived>::RandomAccessLinSpacedReturnType -DenseBase<Derived>::LinSpaced(Scalar low, Scalar high, int size) +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)); @@ -358,7 +358,7 @@ DenseStorageBase<Derived,_Base,_Options>::setConstant(int rows, int cols, const * \sa CwiseNullaryOp */ template<typename Derived> -EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::setLinSpaced(Scalar low, Scalar high, int size) +EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::setLinSpaced(const Scalar& low, const Scalar& high, int size) { EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived) return derived() = Derived::NullaryExpr(size, ei_linspaced_op<Scalar,false>(low,high,size)); diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index e0a3a04af..a2165b52f 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -348,9 +348,9 @@ template<typename Derived> class DenseBase Constant(const Scalar& value); static const SequentialLinSpacedReturnType - LinSpaced(Sequential_t, Scalar low, Scalar high, int size); + LinSpaced(Sequential_t, const Scalar& low, const Scalar& high, int size); static const RandomAccessLinSpacedReturnType - LinSpaced(Scalar low, Scalar high, int size); + LinSpaced(const Scalar& low, const Scalar& high, int size); template<typename CustomNullaryOp> static const CwiseNullaryOp<CustomNullaryOp, Derived> @@ -371,7 +371,7 @@ template<typename Derived> class DenseBase void fill(const Scalar& value); Derived& setConstant(const Scalar& value); - Derived& setLinSpaced(Scalar low, Scalar high, int size); + Derived& setLinSpaced(const Scalar& low, const Scalar& high, int size); Derived& setZero(); Derived& setOnes(); Derived& setRandom(); diff --git a/Eigen/src/plugins/MatrixCwiseUnaryOps.h b/Eigen/src/plugins/MatrixCwiseUnaryOps.h index d75e229fb..8927711ed 100644 --- a/Eigen/src/plugins/MatrixCwiseUnaryOps.h +++ b/Eigen/src/plugins/MatrixCwiseUnaryOps.h @@ -75,7 +75,7 @@ cwiseInverse() const { return derived(); } * \sa cwiseEqual(const MatrixBase<OtherDerived> &) const */ inline const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >,Derived> -cwiseEqual(Scalar s) const +cwiseEqual(const Scalar& s) const { return CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >,Derived> (derived(), std::bind1st(std::equal_to<Scalar>(), s)); |