Eigen::internal::linspaced_op< Scalar > Struct Template Reference

#include <NullaryFunctors.h>

Public Member Functions

EIGEN_DEVICE_FUNC linspaced_op (const Scalar &low, const Scalar &high, Index num_steps)
 
template<typename IndexType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar operator() (IndexType i) const
 
template<typename Packet , typename IndexType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet packetOp (IndexType i) const
 

Public Attributes

const linspaced_op_impl< Scalar, NumTraits< Scalar >::IsInteger > impl
 

Constructor & Destructor Documentation

◆ linspaced_op()

template<typename Scalar >
EIGEN_DEVICE_FUNC Eigen::internal::linspaced_op< Scalar >::linspaced_op ( const Scalar low,
const Scalar high,
Index  num_steps 
)
inline
154  : impl((num_steps == 1 ? high : low), high, num_steps) {}
const linspaced_op_impl< Scalar, NumTraits< Scalar >::IsInteger > impl
Definition: NullaryFunctors.h:168

Member Function Documentation

◆ operator()()

template<typename Scalar >
template<typename IndexType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar Eigen::internal::linspaced_op< Scalar >::operator() ( IndexType  i) const
inline
157  {
158  return impl(i);
159  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9

References i, and Eigen::internal::linspaced_op< Scalar >::impl.

◆ packetOp()

template<typename Scalar >
template<typename Packet , typename IndexType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet Eigen::internal::linspaced_op< Scalar >::packetOp ( IndexType  i) const
inline
162  {
163  return impl.template packetOp<Packet>(i);
164  }

References i, and Eigen::internal::linspaced_op< Scalar >::impl.

Member Data Documentation

◆ impl


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