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

Template functor to compute the inverse of a scalar. More...

#include <UnaryFunctors.h>

List of all members.

Public Member Functions

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

Detailed Description

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

Template functor to compute the inverse of a scalar.

See also:
class CwiseUnaryOp, Cwise::inverse()

Definition at line 581 of file UnaryFunctors.h.


Member Function Documentation

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

Definition at line 583 of file UnaryFunctors.h.

{ return Scalar(1)/a; }
template<typename Scalar >
template<typename Packet >
EIGEN_DEVICE_FUNC const Packet Eigen::internal::scalar_inverse_op< Scalar >::packetOp ( const Packet &  a) const [inline]

Definition at line 585 of file UnaryFunctors.h.

  { return internal::pdiv(pset1<Packet>(Scalar(1)),a); }

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