Documentation

CslibFrontier.Computability.WordRAM.Signed.ArrayArithmetic.Program

Native pointwise signed array addition and subtraction #

These fixed loops perform the vector forms and accumulations needed by native Strassen. The Boolean selects a fixed add or subtract block when constructing the code; every array index, load, signed operation, store and loop instruction remains native and charged. Parameters are ordinary absolute runtime pointers and a length.

@[reducible, inline]

First canonical signed array.

@[reducible, inline]

Second canonical signed array.

@[reducible, inline]

Output array, which may exactly alias an input.

@[reducible, inline]

Runtime length of all three arrays.

@[reducible, inline]

Current pointwise index.

@[reducible, inline]

Load/store address temporary.

@[reducible, inline]

Constant one.

Select a real native signed arithmetic block.

Compute both operand addresses and read the actual words.

Write the result and advance the index after both reads have completed.

One pointwise operation, including all array access work.

Fixed finite code for the entire array operation.