Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.CountPrime.MatrixResidue

Actual guarded CountPrime residue reads #

Both native coordinate comparisons run before a real row-major source read. A padded cell uses the runtime modulus as an out-of-range key, causing the subsequent actual coefficient loop to write zeros. BC transposition is part of the real address computation.

Execute both real padding guards and the admitted source read, or select the padding sentinel. Even invalid coordinates never cause an unchecked source-memory access.