I even reached out to Python programmers, and it seems that my code is correct. So, this tells me, something’s going on. There was a Python programmer here that quits on G’MIC-Py (Something I"d like) or maybe having G’MIC on Julia would be easier.
EDIT:
Hypothesis after testing mesh-grid and i. I ruled out those. I’m left with overflow on Python numpy explanation. Both powermod() and modpower() of ours avoid overflow.
Google points to it too:
And, I tested this:
C:\Windows\System32>gmic echo {100"^"8%(1"<<"32)}
[gmic]./ Start G'MIC interpreter (v.3.3.4).
1874919424
[gmic]./ End G'MIC interpreter.
Proving the problem is within numpy lack of support toward big integers.
But sadly, despite knowing this is a overflow trick, I don’t think I can do it for G’MIC.