sot / Quaternion

Quaternion manipulation
https://sot.github.io/Quaternion
BSD 3-Clause "New" or "Revised" License
3 stars 7 forks source link

Improvements in array interface #12

Open javierggt opened 5 years ago

javierggt commented 5 years ago

It is worth considering how much "array" interface the Quaternion class should have. Examples of array interface can include:

Astropy has a nice mixin class that is used for exactly the purpose of implementing much of the numpy shape-related API on non-numpy classes: https://github.com/astropy/astropy/blob/7bd65c6d88fa6052ea8a0d7b75761076e255c0f4/astropy/utils/misc.py#L893