diff options
author | Georg Jäger <georg.jaeger@informatik.tu-freiberg.de> | 2020-08-20 16:48:11 +0200 |
---|---|---|
committer | Georg Jäger <georg.jaeger@informatik.tu-freiberg.de> | 2020-08-20 16:48:11 +0200 |
commit | 1b1082334bc8511c09b3a70caf545e4cf6ebfbeb (patch) | |
tree | 33873a762ea7a7c4402fce10102e67e08b6b5ddd /Eigen/src/Core/Select.h | |
parent | 603e213d13311af286c8c1abd4ea14a8bd3d204e (diff) |
adding attributes to constructors to support hip-clang on ROCm 3.5
Diffstat (limited to 'Eigen/src/Core/Select.h')
-rw-r--r-- | Eigen/src/Core/Select.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Select.h b/Eigen/src/Core/Select.h index 79eec1b5b..7002f0457 100644 --- a/Eigen/src/Core/Select.h +++ b/Eigen/src/Core/Select.h @@ -120,7 +120,7 @@ class Select : public internal::dense_xpr_base< Select<ConditionMatrixType, Then */ template<typename Derived> template<typename ThenDerived,typename ElseDerived> -inline const Select<Derived,ThenDerived,ElseDerived> +inline EIGEN_DEVICE_FUNC const Select<Derived,ThenDerived,ElseDerived> DenseBase<Derived>::select(const DenseBase<ThenDerived>& thenMatrix, const DenseBase<ElseDerived>& elseMatrix) const { @@ -134,7 +134,7 @@ DenseBase<Derived>::select(const DenseBase<ThenDerived>& thenMatrix, */ template<typename Derived> template<typename ThenDerived> -inline const Select<Derived,ThenDerived, typename ThenDerived::ConstantReturnType> +inline EIGEN_DEVICE_FUNC const Select<Derived,ThenDerived, typename ThenDerived::ConstantReturnType> DenseBase<Derived>::select(const DenseBase<ThenDerived>& thenMatrix, const typename ThenDerived::Scalar& elseScalar) const { @@ -149,7 +149,7 @@ DenseBase<Derived>::select(const DenseBase<ThenDerived>& thenMatrix, */ template<typename Derived> template<typename ElseDerived> -inline const Select<Derived, typename ElseDerived::ConstantReturnType, ElseDerived > +inline EIGEN_DEVICE_FUNC const Select<Derived, typename ElseDerived::ConstantReturnType, ElseDerived > DenseBase<Derived>::select(const typename ElseDerived::Scalar& thenScalar, const DenseBase<ElseDerived>& elseMatrix) const { |