diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-05-15 09:40:11 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-05-15 09:40:11 +0000 |
commit | c6789a279c4def1ba33f6481ac7f9df68ba5f32b (patch) | |
tree | 1c920b7214c25a7e7156a986575bf5c1295074b4 /Eigen/src/Core/CwiseNullaryOp.h | |
parent | 5da60897abba95e4b0c9928dce0f1f18efab4580 (diff) |
Fix compilation issues with MSVC and NVCC.
Added a few typedef of complex return types in MatrixBase (Needed by MSVC)
Diffstat (limited to 'Eigen/src/Core/CwiseNullaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseNullaryOp.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Eigen/src/Core/CwiseNullaryOp.h b/Eigen/src/Core/CwiseNullaryOp.h index 5efcc27f3..7d47fa198 100644 --- a/Eigen/src/Core/CwiseNullaryOp.h +++ b/Eigen/src/Core/CwiseNullaryOp.h @@ -172,7 +172,7 @@ MatrixBase<Derived>::create(const CustomNullaryOp& func) * \sa class CwiseNullaryOp */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::constant(int rows, int cols, const Scalar& value) { return create(rows, cols, ei_scalar_constant_op<Scalar>(value)); @@ -194,7 +194,7 @@ MatrixBase<Derived>::constant(int rows, int cols, const Scalar& value) * \sa class CwiseNullaryOp */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::constant(int size, const Scalar& value) { return create(size, ei_scalar_constant_op<Scalar>(value)); @@ -210,7 +210,7 @@ MatrixBase<Derived>::constant(int size, const Scalar& value) * \sa class CwiseNullaryOp */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::constant(const Scalar& value) { return create(RowsAtCompileTime, ColsAtCompileTime, ei_scalar_constant_op<Scalar>(value)); @@ -254,7 +254,7 @@ Derived& MatrixBase<Derived>::setConstant(const Scalar& value) * \sa zero(), zero(int) */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::zero(int rows, int cols) { return constant(rows, cols, Scalar(0)); @@ -277,7 +277,7 @@ MatrixBase<Derived>::zero(int rows, int cols) * \sa zero(), zero(int,int) */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::zero(int size) { return constant(size, Scalar(0)); @@ -294,7 +294,7 @@ MatrixBase<Derived>::zero(int size) * \sa zero(int), zero(int,int) */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::zero() { return constant(Scalar(0)); @@ -349,7 +349,7 @@ Derived& MatrixBase<Derived>::setZero() * \sa ones(), ones(int), isOnes(), class Ones */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::ones(int rows, int cols) { return constant(rows, cols, Scalar(1)); @@ -372,7 +372,7 @@ MatrixBase<Derived>::ones(int rows, int cols) * \sa ones(), ones(int,int), isOnes(), class Ones */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::ones(int size) { return constant(size, Scalar(1)); @@ -389,7 +389,7 @@ MatrixBase<Derived>::ones(int size) * \sa ones(int), ones(int,int), isOnes(), class Ones */ template<typename Derived> -const CwiseNullaryOp<ei_scalar_constant_op<typename ei_traits<Derived>::Scalar>, Derived> +const typename MatrixBase<Derived>::ConstantReturnType MatrixBase<Derived>::ones() { return constant(Scalar(1)); |