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

Template functor to subtract a fixed scalar to another one. More...

#include <BinaryFunctors.h>

List of all members.

Public Member Functions

EIGEN_DEVICE_FUNC scalar_sub_op (const scalar_sub_op &other)
EIGEN_DEVICE_FUNC scalar_sub_op (const Scalar &other)
EIGEN_DEVICE_FUNC Scalar operator() (const Scalar &a) const
template<typename Packet >
EIGEN_DEVICE_FUNC const Packet packetOp (const Packet &a) const

Public Attributes

const Scalar m_other

Detailed Description

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

Template functor to subtract a fixed scalar to another one.

See also:
class CwiseUnaryOp, Array::operator-, struct scalar_add_op, struct scalar_rsub_op

Definition at line 457 of file BinaryFunctors.h.


Constructor & Destructor Documentation

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::internal::scalar_sub_op< Scalar >::scalar_sub_op ( const scalar_sub_op< Scalar > &  other) [inline]

Definition at line 458 of file BinaryFunctors.h.

: m_other(other.m_other) { }
template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::internal::scalar_sub_op< Scalar >::scalar_sub_op ( const Scalar &  other) [inline]

Definition at line 459 of file BinaryFunctors.h.

: m_other(other) { }

Member Function Documentation

template<typename Scalar >
EIGEN_DEVICE_FUNC Scalar Eigen::internal::scalar_sub_op< Scalar >::operator() ( const Scalar &  a) const [inline]

Definition at line 460 of file BinaryFunctors.h.

{ return a - m_other; }
template<typename Scalar >
template<typename Packet >
EIGEN_DEVICE_FUNC const Packet Eigen::internal::scalar_sub_op< Scalar >::packetOp ( const Packet &  a) const [inline]

Definition at line 462 of file BinaryFunctors.h.

  { return internal::psub(a, pset1<Packet>(m_other)); }

Member Data Documentation

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

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