The 'ideal solution' is a really neat 'logic compression'. However, because the initial conditions are not {0,255}, it's almost impossible to write an explicit version that works.
The attached pull request changes the initial state to be {0,255} instead, so that the following kernel also works (boringly written, I know):
The 'ideal solution' is a really neat 'logic compression'. However, because the initial conditions are not {0,255}, it's almost impossible to write an explicit version that works.
The attached pull request changes the initial state to be {0,255} instead, so that the following kernel also works (boringly written, I know):
All the Best Martin :-)