diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-10-08 17:27:01 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-10-08 17:27:01 +0200 |
commit | dd934ad057e5ad5a5bc9e9a2b4340b4ac16c01d3 (patch) | |
tree | f06adf835fff6b32ee12f11cd1b66e16bdb8fa8f /Eigen/src/Core/functors/NullaryFunctors.h | |
parent | f6f6f50272164a523126f5371ac51a2c8f5bae8e (diff) |
Re-enable vectorization of LinSpaced, plus some cleaning
Diffstat (limited to 'Eigen/src/Core/functors/NullaryFunctors.h')
-rw-r--r-- | Eigen/src/Core/functors/NullaryFunctors.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Eigen/src/Core/functors/NullaryFunctors.h b/Eigen/src/Core/functors/NullaryFunctors.h index 130f20868..55d45f26f 100644 --- a/Eigen/src/Core/functors/NullaryFunctors.h +++ b/Eigen/src/Core/functors/NullaryFunctors.h @@ -26,7 +26,6 @@ struct scalar_constant_op { }; template<typename Scalar> struct functor_traits<scalar_constant_op<Scalar> > -// FIXME replace this packet test by a safe one { enum { Cost = 1, PacketAccess = packet_traits<Scalar>::Vectorizable, IsRepeatable = true }; }; template<typename Scalar> struct scalar_identity_op { @@ -135,14 +134,12 @@ template <typename Scalar, typename PacketType, bool RandomAccess> struct linspa // This proxy object handles the actual required temporaries, the different // implementations (random vs. sequential access) as well as the // correct piping to size 2/4 packet operations. - // TODO find a way to make the packet type configurable const linspaced_op_impl<Scalar,PacketType,RandomAccess> impl; }; // all functors allow linear access, except scalar_identity_op. So we fix here a quick meta // to indicate whether a functor allows linear access, just always answering 'yes' except for // scalar_identity_op. -// FIXME move this to functor_traits adding a functor_default template<typename Functor> struct functor_has_linear_access { enum { ret = 1 }; }; template<typename Scalar> struct functor_has_linear_access<scalar_identity_op<Scalar> > { enum { ret = 0 }; }; |