MOAB
4.9.3pre
|
Template functor to multiply a scalar by a fixed other one. More...
#include <BinaryFunctors.h>
Public Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | scalar_multiple_op (const scalar_multiple_op &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | scalar_multiple_op (const Scalar &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar | operator() (const Scalar &a) const |
template<typename Packet > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet | packetOp (const Packet &a) const |
Public Attributes | |
add_const_on_value_type < typename NumTraits< Scalar > ::Nested >::type | m_other |
Template functor to multiply a scalar by a fixed other one.
Definition at line 358 of file BinaryFunctors.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::internal::scalar_multiple_op< Scalar >::scalar_multiple_op | ( | const scalar_multiple_op< Scalar > & | other | ) | [inline] |
Definition at line 361 of file BinaryFunctors.h.
: m_other(other.m_other) { }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::internal::scalar_multiple_op< Scalar >::scalar_multiple_op | ( | const Scalar & | other | ) | [inline] |
Definition at line 363 of file BinaryFunctors.h.
: m_other(other) { }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar Eigen::internal::scalar_multiple_op< Scalar >::operator() | ( | const Scalar & | a | ) | const [inline] |
Definition at line 365 of file BinaryFunctors.h.
{ return a * m_other; }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet Eigen::internal::scalar_multiple_op< Scalar >::packetOp | ( | const Packet & | a | ) | const [inline] |
Definition at line 367 of file BinaryFunctors.h.
{ return internal::pmul(a, pset1<Packet>(m_other)); }
add_const_on_value_type<typename NumTraits<Scalar>::Nested>::type Eigen::internal::scalar_multiple_op< Scalar >::m_other |
Definition at line 369 of file BinaryFunctors.h.