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

Template functor to add a scalar to a fixed other one. More...

#include <BinaryFunctors.h>

List of all members.

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

Detailed Description

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

Template functor to add a scalar to a fixed other one.

See also:
class CwiseUnaryOp, Array::operator+

Definition at line 438 of file BinaryFunctors.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

template<typename Scalar >
const Scalar Eigen::internal::scalar_add_op< Scalar >::m_other

Definition at line 446 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