Ivorforce / NumDot

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

Decouple store type from varray dtype, such that you can create packed types etc. using the enums #140

Open Ivorforce opened 3 weeks ago

Ivorforce commented 3 weeks ago

This will unfortunately mean moving all the allocation tools into gd conversion, but it's probably worth it for accelerated allocation to packed arrays and similar.

We should be able to simplify to empty(dtype) -> va::initialize though.

Ivorforce commented 1 week ago

The requirements for this are now implemented: Everything uses abstract allocators, so we should be able to replace DType inputs everywhere with SType inputs. The most important part is keeping the two synchronized, such that every 'natural' xtensor dtype is at the same spot as its SType counterpart, while packed types come after them.