Eigen::internal::ImagePatchCopyOp< Self, true > Struct Template Reference

#include <TensorImagePatch.h>

Public Types

typedef Self::Index Index
 
typedef Self::Scalar Scalar
 
typedef Self::Impl Impl
 
typedef packet_traits< Scalar >::type Packet
 

Static Public Member Functions

static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Run (const Self &self, const Index num_coeff_to_copy, const Index dst_index, Scalar *dst_data, const Index src_index)
 

Member Typedef Documentation

◆ Impl

template<typename Self >
typedef Self::Impl Eigen::internal::ImagePatchCopyOp< Self, true >::Impl

◆ Index

template<typename Self >
typedef Self::Index Eigen::internal::ImagePatchCopyOp< Self, true >::Index

◆ Packet

template<typename Self >
typedef packet_traits<Scalar>::type Eigen::internal::ImagePatchCopyOp< Self, true >::Packet

◆ Scalar

template<typename Self >
typedef Self::Scalar Eigen::internal::ImagePatchCopyOp< Self, true >::Scalar

Member Function Documentation

◆ Run()

template<typename Self >
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::internal::ImagePatchCopyOp< Self, true >::Run ( const Self &  self,
const Index  num_coeff_to_copy,
const Index  dst_index,
Scalar dst_data,
const Index  src_index 
)
inlinestatic
81  {
82  const Impl& impl = self.impl();
84  const Index vectorized_size = (num_coeff_to_copy / packet_size) * packet_size;
85  for (Index i = 0; i < vectorized_size; i += packet_size) {
86  Packet p = impl.template packet<Unaligned>(src_index + i);
87  internal::pstoret<Scalar, Packet, Unaligned>(dst_data + dst_index + i, p);
88  }
89  for (Index i = vectorized_size; i < num_coeff_to_copy; ++i) {
90  dst_data[dst_index + i] = impl.coeff(src_index + i);
91  }
92  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
float * p
Definition: Tutorial_Map_using.cpp:9
Self::Impl Impl
Definition: TensorImagePatch.h:77
Self::Index Index
Definition: TensorImagePatch.h:75
@ size
Definition: GenericPacketMath.h:139

References i, and p.


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