uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.51k stars 106 forks source link

Fix upscale uiuism for grayscale images #484

Closed Omnikar closed 4 months ago

Omnikar commented 4 months ago

The existing code would leave grayscale images/rank 2 arrays transposed. This was not caught because the example array is symmetrical about its main diagonal, and thus equivalent to its transpose. This PR fixes the uiuism and updates the example to not be symmetrical.