Eigen::internal::scalar_log10_op< Scalar > Struct Template Reference

Template functor to compute the base-10 logarithm of a scalar. More...

#include <UnaryFunctors.h>

Public Member Functions

EIGEN_DEVICE_FUNC const Scalar operator() (const Scalar &a) const
 
template<typename Packet >
EIGEN_DEVICE_FUNC Packet packetOp (const Packet &a) const
 

Detailed Description

template<typename Scalar>
struct Eigen::internal::scalar_log10_op< Scalar >

Template functor to compute the base-10 logarithm of a scalar.

See also
class CwiseUnaryOp, Cwise::log10()

Member Function Documentation

◆ operator()()

template<typename Scalar >
EIGEN_DEVICE_FUNC const Scalar Eigen::internal::scalar_log10_op< Scalar >::operator() ( const Scalar a) const
inline
479 { EIGEN_USING_STD(log10) return log10(a); }
#define EIGEN_USING_STD(FUNC)
Definition: Macros.h:1090
const Scalar * a
Definition: level2_cplx_impl.h:32
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 log10(const bfloat16 &a)
Definition: BFloat16.h:620

References a, EIGEN_USING_STD, and Eigen::bfloat16_impl::log10().

◆ packetOp()

template<typename Scalar >
template<typename Packet >
EIGEN_DEVICE_FUNC Packet Eigen::internal::scalar_log10_op< Scalar >::packetOp ( const Packet a) const
inline
481  {
482  return internal::plog10(a);
483  }
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet plog10(const Packet &a)
Definition: GenericPacketMath.h:1116

References a, and Eigen::internal::plog10().


The documentation for this struct was generated from the following file: