conduit icon indicating copy to clipboard operation
conduit copied to clipboard

add DataType::element_stride()

Open cyrush opened this issue 1 year ago • 1 comments

strides are in bytes, but per element strides are convenient when adapting to many apis.

caveat: its possible that byte-strides may not be element aligned -- also figure out how to identify this case

cyrush avatar Dec 06 '23 20:12 cyrush

DataType::is_stride_element_aligned();
DataType::is_stride_aligned(index_t nbytes);

cyrush avatar Dec 12 '23 22:12 cyrush