PyO3 / rust-numpy

PyO3-based Rust bindings of the NumPy C-API
BSD 2-Clause "Simplified" License
1.11k stars 106 forks source link

Collect scattered code for converting strides #305

Closed adamreichold closed 2 years ago

adamreichold commented 2 years ago

This mainly collects the code that is necessary to convert strides between NumPy's byte-unit convention and ndarray's item-unit convention which was scattered over multiple small helper types with the aim of making it easier to follow.