Turns out that a lot of interesting computation can be expressed as a matrix multiplication.
Yeah, I wouldn't have guessed it would be helping me write systemverilog.