|
MOAB
4.9.3pre
|
Template functor to compute the cube 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 |
Template functor to compute the cube of a scalar.
Definition at line 613 of file UnaryFunctors.h.
| EIGEN_DEVICE_FUNC Scalar Eigen::internal::scalar_cube_op< Scalar >::operator() | ( | const Scalar & | a | ) | const [inline] |
Definition at line 615 of file UnaryFunctors.h.
{ return a*a*a; }
| EIGEN_DEVICE_FUNC const Packet Eigen::internal::scalar_cube_op< Scalar >::packetOp | ( | const Packet & | a | ) | const [inline] |
Definition at line 617 of file UnaryFunctors.h.
{ return internal::pmul(a,pmul(a,a)); }