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

Template functor to raise a scalar to a power. More...

#include <BinaryFunctors.h>

List of all members.

Public Member Functions

EIGEN_DEVICE_FUNC scalar_pow_op (const scalar_pow_op &other)
EIGEN_DEVICE_FUNC scalar_pow_op (const Scalar &exponent)
EIGEN_DEVICE_FUNC Scalar operator() (const Scalar &a) const

Public Attributes

const Scalar m_exponent

Detailed Description

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

Template functor to raise a scalar to a power.

See also:
class CwiseUnaryOp, Cwise::pow

Definition at line 493 of file BinaryFunctors.h.


Constructor & Destructor Documentation

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

Definition at line 495 of file BinaryFunctors.h.

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

Definition at line 496 of file BinaryFunctors.h.

: m_exponent(exponent) {}

Member Function Documentation

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

Definition at line 498 of file BinaryFunctors.h.

{ return numext::pow(a, m_exponent); }

Member Data Documentation

template<typename Scalar >
const Scalar Eigen::internal::scalar_pow_op< Scalar >::m_exponent

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