Ivorforce / NumDot

Tensor math and scientific computation for the Godot game engine.
https://numdot.readthedocs.io
MIT License
20 stars 7 forks source link

NDArrays should be iterable #18

Closed Ivorforce closed 1 month ago

Ivorforce commented 2 months ago

I suppose they would iterate the first dimension, as in numpy. To iterate all, ideally one would take a flat view first, though that is limited by #17 not being implemented.

Ivorforce commented 1 month ago

Custom iterators look like this btw.: https://github.com/godotengine/godot/blob/d0dc3896ad6fe039e4ad0607d901c81197cb3a3b/modules/gdscript/tests/scripts/runtime/features/object_iterators.gd#L1