TudbuT / micro_ndarray

Very small multi-dimensional-array implementation
MIT License
1 stars 0 forks source link

Add `get_unchecked` #1

Closed Tnze closed 1 year ago

Tnze commented 1 year ago

Sometimes we need faster get methods.

TudbuT commented 1 year ago

Should be pretty straightforward. I'll get to it some time today or tomorrow.

TudbuT commented 1 year ago

Would you want to give the index into the data array directly, or still have that be computed? Maybe have both?

Tnze commented 1 year ago

From my personal needs, I think it's the latter. If I don't need to calculate the index, I can just use Vec.

TudbuT commented 1 year ago

Added and published as 0.2.4.