[Numpy-discussion] is __array_ufunc__ ready for prime-time?

Marten van Kerkwijk m.h.vankerkwijk at gmail.com
Tue Nov 7 11:18:27 EST 2017


Hi Benjamin,

For the shapes and reshaping, I wrote an ShapedLikeNDArray mixin/ABC
for astropy, which may be a useful starting point as it also provides
a way to implement the methods ndarray uses to reshape and get
elements: see https://github.com/astropy/astropy/blob/master/astropy/utils/misc.py#L863

All the best,

Marten


More information about the NumPy-Discussion mailing list