MOAB
4.9.3pre
|
Template functor to compute the opposite of a scalar. More...
#include <UnaryFunctors.h>
Public Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar | operator() (const Scalar &a) const |
template<typename Packet > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet | packetOp (const Packet &a) const |
Template functor to compute the opposite of a scalar.
Definition at line 22 of file UnaryFunctors.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar Eigen::internal::scalar_opposite_op< Scalar >::operator() | ( | const Scalar & | a | ) | const [inline] |
Definition at line 24 of file UnaryFunctors.h.
{ return -a; }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet Eigen::internal::scalar_opposite_op< Scalar >::packetOp | ( | const Packet & | a | ) | const [inline] |
Definition at line 26 of file UnaryFunctors.h.
{ return internal::pnegate(a); }