MOAB
4.9.3pre
|
Template functor to add a scalar to a fixed other one. More...
#include <BinaryFunctors.h>
Public Member Functions | |
EIGEN_DEVICE_FUNC | scalar_add_op (const scalar_add_op &other) |
EIGEN_DEVICE_FUNC | scalar_add_op (const Scalar &other) |
EIGEN_DEVICE_FUNC Scalar | operator() (const Scalar &a) const |
template<typename Packet > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet | packetOp (const Packet &a) const |
Public Attributes | |
const Scalar | m_other |
Template functor to add a scalar to a fixed other one.
Definition at line 438 of file BinaryFunctors.h.
EIGEN_DEVICE_FUNC Eigen::internal::scalar_add_op< Scalar >::scalar_add_op | ( | const scalar_add_op< Scalar > & | other | ) | [inline] |
Definition at line 440 of file BinaryFunctors.h.
: m_other(other.m_other) { }
EIGEN_DEVICE_FUNC Eigen::internal::scalar_add_op< Scalar >::scalar_add_op | ( | const Scalar & | other | ) | [inline] |
Definition at line 441 of file BinaryFunctors.h.
: m_other(other) { }
EIGEN_DEVICE_FUNC Scalar Eigen::internal::scalar_add_op< Scalar >::operator() | ( | const Scalar & | a | ) | const [inline] |
Definition at line 442 of file BinaryFunctors.h.
{ return a + m_other; }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet Eigen::internal::scalar_add_op< Scalar >::packetOp | ( | const Packet & | a | ) | const [inline] |
Definition at line 444 of file BinaryFunctors.h.
{ return internal::padd(a, pset1<Packet>(m_other)); }
const Scalar Eigen::internal::scalar_add_op< Scalar >::m_other |
Definition at line 446 of file BinaryFunctors.h.