Eigen::internal::MemcpyTriggerForSlicing< Index, Device, BlockAccess > Struct Template Reference

#include <TensorMorphing.h>

Public Member Functions

EIGEN_DEVICE_FUNC MemcpyTriggerForSlicing (const Device &device)
 
EIGEN_DEVICE_FUNC bool operator() (Index total, Index contiguous) const
 

Private Attributes

Index threshold_
 

Constructor & Destructor Documentation

◆ MemcpyTriggerForSlicing()

template<typename Index , typename Device , bool BlockAccess>
EIGEN_DEVICE_FUNC Eigen::internal::MemcpyTriggerForSlicing< Index, Device, BlockAccess >::MemcpyTriggerForSlicing ( const Device &  device)
inline
320 : threshold_(2 * device.numThreads()) {}
Index threshold_
Definition: TensorMorphing.h:327

Member Function Documentation

◆ operator()()

template<typename Index , typename Device , bool BlockAccess>
EIGEN_DEVICE_FUNC bool Eigen::internal::MemcpyTriggerForSlicing< Index, Device, BlockAccess >::operator() ( Index  total,
Index  contiguous 
) const
inline
321  {
322  const bool prefer_block_evaluation = BlockAccess && total > 32 * 1024;
323  return !prefer_block_evaluation && contiguous > threshold_;
324  }

References Eigen::internal::MemcpyTriggerForSlicing< Index, Device, BlockAccess >::threshold_.

Member Data Documentation

◆ threshold_

template<typename Index , typename Device , bool BlockAccess>
Index Eigen::internal::MemcpyTriggerForSlicing< Index, Device, BlockAccess >::threshold_
private

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