mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-22 12:37:35 +08:00
Fix compilation with nvcc
This commit is contained in:
parent
3d946e42b3
commit
f9f32e9e2d
@ -353,8 +353,8 @@ struct nullary_wrapper
|
|||||||
template<typename Scalar,typename NullaryOp>
|
template<typename Scalar,typename NullaryOp>
|
||||||
struct nullary_wrapper<Scalar,NullaryOp,true,false,false>
|
struct nullary_wrapper<Scalar,NullaryOp,true,false,false>
|
||||||
{
|
{
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar operator()(const NullaryOp& op, ...) const { return op(); }
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar operator()(const NullaryOp& op, Index=0, Index=0) const { return op(); }
|
||||||
template <typename T> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T packetOp(const NullaryOp& op, ...) const { return op.template packetOp<T>(); }
|
template <typename T> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T packetOp(const NullaryOp& op, Index=0, Index=0) const { return op.template packetOp<T>(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Scalar,typename NullaryOp>
|
template<typename Scalar,typename NullaryOp>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user