MOAB
4.9.3pre
|
Template functor to divide a scalar by a fixed other one. More...
#include <BinaryFunctors.h>
Public Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | scalar_quotient1_op (const scalar_quotient1_op &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | scalar_quotient1_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 divide a scalar by a fixed other one.
This functor is used to implement the quotient of a matrix by a scalar where the scalar type is not necessarily a floating point type.
Definition at line 396 of file BinaryFunctors.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::internal::scalar_quotient1_op< Scalar >::scalar_quotient1_op | ( | const scalar_quotient1_op< Scalar > & | other | ) | [inline] |
Definition at line 398 of file BinaryFunctors.h.
: m_other(other.m_other) { }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::internal::scalar_quotient1_op< Scalar >::scalar_quotient1_op | ( | const Scalar & | other | ) | [inline] |
Definition at line 399 of file BinaryFunctors.h.
: m_other(other) {}
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar Eigen::internal::scalar_quotient1_op< Scalar >::operator() | ( | const Scalar & | a | ) | const [inline] |
Definition at line 400 of file BinaryFunctors.h.
{ return a / m_other; }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet Eigen::internal::scalar_quotient1_op< Scalar >::packetOp | ( | const Packet & | a | ) | const [inline] |
Definition at line 402 of file BinaryFunctors.h.
{ return internal::pdiv(a, pset1<Packet>(m_other)); }
add_const_on_value_type<typename NumTraits<Scalar>::Nested>::type Eigen::internal::scalar_quotient1_op< Scalar >::m_other |
Definition at line 404 of file BinaryFunctors.h.