warlock-labs / dimensionals

Rust native N dimensional arrays
MIT License
8 stars 2 forks source link

fix: modify 'shape' access + memoize 'len' #6

Closed xxxxxxxxxmr closed 4 days ago

xxxxxxxxxmr commented 5 days ago

Pretty straightforward, using the shape already on the object for unravel_index and ravel_index (self.shape instead of taking a shape parameter)

xxxxxxxxxmr commented 5 days ago

ca004b5