(obj, method, *args, **kwds)
| 36 | |
| 37 | # functions that are now methods |
| 38 | def _wrapit(obj, method, *args, **kwds): |
| 39 | conv = _array_converter(obj) |
| 40 | # As this already tried the method, subok is maybe quite reasonable here |
| 41 | # but this follows what was done before. TODO: revisit this. |
| 42 | arr, = conv.as_arrays(subok=False) |
| 43 | result = getattr(arr, method)(*args, **kwds) |
| 44 | |
| 45 | return conv.wrap(result, to_scalar=False) |
| 46 | |
| 47 | |
| 48 | def _wrapfunc(obj, method, *args, **kwds): |