Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/train/openaccel-lab/workloads/transpose/omega.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / train / openaccel-lab / workloads / transpose / omega.om` 29 lines ยท 449 bytes Raw Blame History 1 note transpose: fo[j*R + i] = fa[i*C + j] for an R x C row-major fa 2 global dm ulong 2 3 fn kern to void 4 r = get dm 0 5 c = get dm 1 6 for i ulong r 7 for j ulong c 8 put fo add mul j r i get fa add mul i c j 9 end 10 end 11 end 12 fn main to int 13 oal_begin 14 put dm 0 ulong oal_p 0 15 put dm 1 ulong oal_p 1 16 a = oal_fa 0 17 w = oal_warm 18 for i ulong add w oal_reps 19 t0 = monons 20 kern 21 t1 = monons 22 if ge i w 23 oal_tick sub t1 t0 24 end 25 end 26 oal_so 0 mul get dm 0 get dm 1 27 oal_end 28 ret 0 29 end