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/yang/blob/main/scripts/check_block_covariance.om # yang This project has not described itself yet. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `yang / scripts / check_block_covariance.om` 116 lines ยท 2034 bytes Raw Blame History 1 note Directly exercise the production blocking routine on noncommuting periodic links. 2 global fixtureLinks f32 4096 3 global fixtureFrames f32 1024 4 global fixtureCoarse f32 256 5 text tBlockCov "blocked-link covariance and zero-projection fallback PASS\n" 6 7 fn rngUnit u edit f32 4 to void 8 n2 = f64 0.0f64 9 for c ulong 4 10 z = uRngNorm64 11 put u c f32 z 12 n2 = add n2 mul z z 13 end 14 for c ulong 4 15 put u c f32 div f64 get u c uSqrt64 n2 16 end 17 end 18 19 fn frame s ulong u edit f32 4 to void 20 for c ulong 4 21 put u c get fixtureFrames add mul s 4 c 22 end 23 end 24 25 fn transformFixtureLink s ulong mu ulong to void 26 g = new f32 4 0.0f32 27 h = new f32 4 0.0f32 28 u = new f32 4 0.0f32 29 p = new f32 4 0.0f32 30 v = new f32 4 0.0f32 31 frame s g 32 frame stepCoord s 4 mu 1 h 33 hQConj h 34 loadLvl 0 s mu u 35 hQMul g u p 36 hQMul p h v 37 storeLvl 0 s mu v 38 end 39 40 fn compareHostLink v view f32 4 base ulong to void 41 for c ulong 4 42 if gt uAbs64 f64 sub get v c get hL2 add base c 0.`00002f64` 43 exit 68 44 end 45 end 46 end 47 48 fn compareFixtureLink X ulong mu ulong to void 49 x = coarseToFine X 4 50 g = new f32 4 0.0f32 51 h = new f32 4 0.0f32 52 u = new f32 4 0.0f32 53 p = new f32 4 0.0f32 54 v = new f32 4 0.0f32 55 frame x g 56 frame stepCoord x 4 mu 2 h 57 hQConj h 58 base = mul add mul X 4 mu 4 59 for c ulong 4 60 put u c get fixtureCoarse add base c 61 end 62 hQMul g u p 63 hQMul p h v 64 compareHostLink v base 65 end 66 67 fn checkBlocked clos ulong to void 68 put kernelWeight 0 div f32 clos 4.0f32 69 for i ulong 4096 70 put hL1 i get fixtureLinks i 71 end 72 blockBox 0 1 4 0 2 73 for i ulong 256 74 put fixtureCoarse i get hL2 i 75 end 76 for s ulong 256 77 for mu ulong 4 78 transformFixtureLink s mu 79 end 80 end 81 blockBox 0 1 4 0 2 82 for X ulong 16 83 for mu ulong 4 84 compareFixtureLink X mu 85 end 86 end 87 end 88 89 fn main to int 90 uRngSeed 78321 91 v = new f32 4 0.0f32 92 for s ulong 256 93 rngUnit v 94 for c ulong 4 95 put fixtureFrames add mul s 4 c get v c 96 end 97 for mu ulong 4 98 rngUnit v 99 for c ulong 4 100 put fixtureLinks add mul add mul s 4 mu 4 c get v c 101 end 102 end 103 end 104 for clos ulong 5 105 checkBlocked clos 106 end 107 zero = new f32 4 0.0f32 108 hQNorm zero v 109 for c ulong 4 110 if ne get zero c get v c 111 ret 69 112 end 113 end 114 uPrint tBlockCov 115 ret 0 116 end