2 ms·
Visualizing multi-dimensional array shapes recursively
- biraj-rocks 3mo agofour years ago, i wondered how multidimensional arrays could be visualized, so i came up with a recursive representation in my head and built this canvas-based visualizer to see if it would work. it handles tensors of arbitrary rank by recursively nesting lower-dimensional structures. should have shared it on HN then, but i didn't even know about it. i still think that it's cool, so i guess better late then never :) here's the source code: https://github.com/biraj21/tensor-visualizer https://github.com/biraj21/tensor-visualizer