Skip to main content

Module addressing

Module addressing 

Source
Expand description

Layout address-computation traits and shared helpers.

Implements the element-address formulas defined in docs/spec/memory-layout.md § Element Address Computation and per-layout spec files under docs/spec/layouts/.

Modules§

block_paged
Block-paged layout element lookup.
col_major
Column-major (Fortran-order) element offset computation.
coo
COO (Coordinate) sparse layout element lookup.
csc
CSC (Compressed Sparse Column) sparse layout element lookup.
csf
CSF (Compressed Sparse Fiber) element lookup and storage-invariant validation.
csr
CSR (Compressed Sparse Row) sparse layout element lookup.
hilbert
Hilbert curve element offset computation.
morton
Morton (Z-order curve) element offset computation.
row_major
Row-major (C-order) element offset computation.
strided
Strided layout element offset computation.
tiled
Tiled / blocked layout element offset computation.

Traits§

ElementAddress
Implemented by every dense layout descriptor.

Functions§

byte_address_from_element_offset
Converts a linear element offset to an absolute byte address within a buffer.