Hi, I’ve been learning Julia for a few weeks off and on, and reading the David Mac Kay book at the same time. I was wondering if some of you could review my notebook here https://purport.neocities.org/hamming.html
Currently I have the matrix coded as [1 1 1 0 1 0 0; 0 1 1 1 0 1 0; 1 0 1 1 0 0 1], but I was wondering if there was some way to do [ I_4; P ] or similar like I have it in the latex? Then I could reuse P.
The encoding and decoding of the image looks quite long? I was wondering if there was some way to make that a bit more elegant? I have quite a few maps over the place too, I really just want to manipulate bits and 1’s or 0’s
Anything else you might suggest to make the code more idiomatic Julia? There isn’t much code here really, but Julia is a bit different to my usual programming languages so I’d appreciate anything really.
Thanks,
Dave