Eigen::internal::scalar_cast_op< Scalar, NewType > Struct Template Reference

Template functor to cast a scalar to another type. More...

#include <UnaryFunctors.h>

Public Types

typedef NewType result_type
 

Public Member Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const NewType operator() (const Scalar &a) const
 

Detailed Description

template<typename Scalar, typename NewType>
struct Eigen::internal::scalar_cast_op< Scalar, NewType >

Template functor to cast a scalar to another type.

See also
class CwiseUnaryOp, MatrixBase::cast()

Member Typedef Documentation

◆ result_type

template<typename Scalar , typename NewType >
typedef NewType Eigen::internal::scalar_cast_op< Scalar, NewType >::result_type

Member Function Documentation

◆ operator()()

template<typename Scalar , typename NewType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const NewType Eigen::internal::scalar_cast_op< Scalar, NewType >::operator() ( const Scalar a) const
inline
207  {
208  return cast<Scalar, NewType>(a);
209  }
const Scalar * a
Definition: level2_cplx_impl.h:32

References a.


The documentation for this struct was generated from the following file: