From f23dc5b971d1c11bc0fcb7068788a30e4bd7cbf1 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 3 Dec 2020 14:32:45 -0800 Subject: Revert "Add log2() operator to Eigen" This reverts commit 4d91519a9be061da5d300079fca17dd0b9328050. --- Eigen/src/Core/functors/UnaryFunctors.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'Eigen/src/Core/functors') diff --git a/Eigen/src/Core/functors/UnaryFunctors.h b/Eigen/src/Core/functors/UnaryFunctors.h index c037576dc..8c0ed8481 100644 --- a/Eigen/src/Core/functors/UnaryFunctors.h +++ b/Eigen/src/Core/functors/UnaryFunctors.h @@ -395,22 +395,6 @@ template struct functor_traits > { enum { Cost = 5 * NumTraits::MulCost, PacketAccess = packet_traits::HasLog10 }; }; -/** \internal - * - * \brief Template functor to compute the base-2 logarithm of a scalar - * - * \sa class CwiseUnaryOp, Cwise::log2() - */ -template struct scalar_log2_op { - EIGEN_EMPTY_STRUCT_CTOR(scalar_log2_op) - EIGEN_DEVICE_FUNC inline const Scalar operator() (const Scalar& a) const { return Scalar(M_LOG2E) * std::log(a); } - template - EIGEN_DEVICE_FUNC inline Packet packetOp(const Packet& a) const { return internal::plog2(a); } -}; -template -struct functor_traits > -{ enum { Cost = 5 * NumTraits::MulCost, PacketAccess = packet_traits::HasLog }; }; - /** \internal * \brief Template functor to compute the square root of a scalar * \sa class CwiseUnaryOp, Cwise::sqrt() -- cgit v1.2.3