array
C++ library for multi-dimensional arrays
Public Types | Static Public Member Functions | List of all members
copy_shape_traits< ShapeSrc, ShapeDst > Class Template Reference

#include <array.h>

Public Types

using src_shape_type = ShapeSrc
 
using dst_shape_type = ShapeDst
 

Static Public Member Functions

template<class Fn , class TSrc , class TDst >
static NDARRAY_HOST_DEVICE void for_each_value (const ShapeSrc &shape_src, TSrc src, const ShapeDst &shape_dst, TDst dst, Fn &&fn)
 

Detailed Description

template<class ShapeSrc, class ShapeDst>
class nda::copy_shape_traits< ShapeSrc, ShapeDst >

Copy shape traits enable some behaviors to be customized on a pairwise shape basis for copies.

Member Function Documentation

static NDARRAY_HOST_DEVICE void for_each_value ( const ShapeSrc &  shape_src,
TSrc  src,
const ShapeDst &  shape_dst,
TDst  dst,
Fn &&  fn 
)
inlinestatic

The for_each_value implementation for the shapes may be able to statically optimize the shapes. The default implementation optimizes the shapes at runtime, and only attempts to convert the shapes to dense_shapes of the same rank.


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