(obj, method, *args, **kwds)
| 38 | |
| 39 | # functions that are now methods |
| 40 | def _wrapit(obj, method, *args, **kwds): |
| 41 | try: |
| 42 | wrap = obj.__array_wrap__ |
| 43 | except AttributeError: |
| 44 | wrap = None |
| 45 | result = getattr(asarray(obj), method)(*args, **kwds) |
| 46 | if wrap: |
| 47 | if not isinstance(result, mu.ndarray): |
| 48 | result = asarray(result) |
| 49 | result = wrap(result) |
| 50 | return result |
| 51 | |
| 52 | |
| 53 | def _wrapfunc(obj, method, *args, **kwds): |