Array blocks in ordinary initialized inputs #
Main results #
WordRAM.Data.init_mem_append: read a word after an arbitrary prefix inData.init, accounting for the machine's length header.WordRAM.Data.init_mem_of_length_lt: every cell past the input is0.WordRAM.Data.init_realizes_append: a list segment appears at its actual initialized address, including the machine's length header.WordRAM.Data.init_mem_flatMap_finRange,WordRAM.InputFits.flatMap_finRange: row-major lookup inData.initandInputFitsafter a header prefix.
This is a representation API for the existing Data.init, with no alternate input convention.
It lives in a narrow input-array module to keep the list getD dependency and initialization
bridge out of Allocation. This avoids changing the allocation interface and rebuilding its
unrelated importers when the input representation API changes.
Reading word k after an arbitrary prefix pre in Data.init (pre ++ rest). The extra
address word is the standard unsigned input-length header at address 0.
The payload between an arbitrary prefix and suffix occupies its corresponding actual input block. The extra address word is the standard unsigned input-length header.
Reading entry (i, j) of a flattened n × d row-major block after a header prefix pre
in Data.init.
InputFits for a header prefix pre followed by a flattened n × d row-major block.