(*args)
| 30 | |
| 31 | |
| 32 | def get_array_namespace(*args): |
| 33 | xps = set() |
| 34 | for arg in args: |
| 35 | _walk_array_namespaces(arg, xps) |
| 36 | |
| 37 | xps.discard(np) |
| 38 | if len(xps) > 1: |
| 39 | names = [module.__name__ for module in xps] |
| 40 | raise ValueError(f"Mixed array types {names} are not supported.") |
| 41 | |
| 42 | return next(iter(xps)) if xps else np |
| 43 | |
| 44 | |
| 45 | class _ufunc_wrapper(ABC): |
no test coverage detected
searching dependent graphs…