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

Template functor to compute the square of a scalar. More...

#include <UnaryFunctors.h>

Public Member Functions

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

Detailed Description

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

Template functor to compute the square of a scalar.

See also
class CwiseUnaryOp, Cwise::square()

Member Function Documentation

◆ operator()()

template<typename Scalar >
EIGEN_DEVICE_FUNC Scalar Eigen::internal::scalar_square_op< Scalar >::operator() ( const Scalar a) const
inline
833 { return a * a; }
const Scalar * a
Definition: level2_cplx_impl.h:32

References a.

◆ packetOp()

template<typename Scalar >
template<typename Packet >
EIGEN_DEVICE_FUNC const Packet Eigen::internal::scalar_square_op< Scalar >::packetOp ( const Packet a) const
inline
835  {
836  return internal::pmul(a, a);
837  }
EIGEN_STRONG_INLINE Packet4cf pmul(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:88

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


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