MOAB  4.9.3pre
Eigen::internal::scalar_quotient1_op< Scalar > Struct Template Reference

Template functor to divide a scalar by a fixed other one. More...

#include <BinaryFunctors.h>

Collaboration diagram for Eigen::internal::scalar_quotient1_op< Scalar >:

List of all members.

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

Detailed Description

template<typename Scalar>
struct Eigen::internal::scalar_quotient1_op< Scalar >

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.

See also:
class CwiseUnaryOp, MatrixBase::operator/

Definition at line 396 of file BinaryFunctors.h.


Constructor & Destructor Documentation

template<typename Scalar >
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) { }
template<typename Scalar >
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) {}

Member Function Documentation

template<typename Scalar >
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; }
template<typename Scalar >
template<typename Packet >
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)); }

Member Data Documentation

template<typename Scalar >
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.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines