(self, ufunc, method, *inputs, **kwargs)
| 2329 | |
| 2330 | class MyA(np.ndarray): |
| 2331 | def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): |
| 2332 | return getattr(ufunc, method)(*(input.view(np.ndarray) |
| 2333 | for input in inputs), **kwargs) |
| 2334 | a = np.arange(12.).reshape(4,3) |
| 2335 | ra = a.view(dtype=('f8,f8,f8')).squeeze() |
| 2336 | mra = ra.view(MyA) |