static TTL_layout_t TTL_create_layout(void)
Create a 1D Description of a Tensor layout in memory.
static TTL_offset_dim_t TTL_linearize(const TTL_offset_t offset, const TTL_layout_t layout)
Calculate the absolute linear offset in elements, based on a given tensor offset and layout.
unsigned int TTL_dim_t
The type used to hold the size of an object along any dimension.
int TTL_offset_dim_t
The type used to hold offsets and origins.
Description of a Tensor layout in memory.
TTL_dim_t row_spacing
The distance between the start of consequtive rows in units of elements.
TTL_dim_t plane_spacing
The distance between the start of consequtive planes in units of elements.
Description of the 3D offset of an object.
TTL_offset_dim_t z
Offset in dimension z.
TTL_offset_dim_t y
Offset in dimension y.
TTL_offset_dim_t x
Offset in dimension x.