struct nd_copy_layout
Declaration
struct nd_copy_layout { /* full declaration omitted */ };
Description
Describes a box-shaped copy operation between two box-shaped allocations in terms of linear offsets and strides.
Member Variables
- size_t offset_in_source = 0
- offset in the source allocation, in bytes, of the first chunk to copy.
- size_t offset_in_dest = 0
- offset in the destination allocation, in bytes, of the first chunk to copy.
- int num_complex_strides = 0
- number of strides which are not contiguous in either source or destination.
- stride_dimension[2] strides
- in the 3D / 2-complex case, strides[0] is the outer and strides[1] the inner stride.
- size_t contiguous_size = 0
- number of contiguous bytes in the last dimension.
Friend Function Overview
- operator!=(const nd_copy_layout & lhs, const nd_copy_layout & rhs) → friend bool
- operator==(const nd_copy_layout & lhs, const nd_copy_layout & rhs) → friend bool
Friend Functions
¶friend bool operator!=(const nd_copy_layout& lhs,
const nd_copy_layout& rhs)
friend bool operator!=(const nd_copy_layout& lhs,
const nd_copy_layout& rhs)
Parameters
- const nd_copy_layout& lhs
- const nd_copy_layout& rhs
¶friend bool operator==(const nd_copy_layout& lhs,
const nd_copy_layout& rhs)
friend bool operator==(const nd_copy_layout& lhs,
const nd_copy_layout& rhs)
Parameters
- const nd_copy_layout& lhs
- const nd_copy_layout& rhs