|
14 | 14 | # do not change them. issue gh-15518 |
15 | 15 | # _get_ndarray_c_version is semi-public, on purpose not added to __all__ |
16 | 16 | from ._multiarray_umath import ( |
17 | | - _fastCopyAndTranspose, _flagdict, _insert, _reconstruct, _vec_string, |
18 | | - _ARRAY_API, _monotonicity, _get_ndarray_c_version, _set_madvise_hugepage, |
| 17 | + _fastCopyAndTranspose, _flagdict, _from_dlpack, _insert, _reconstruct, |
| 18 | + _vec_string, _ARRAY_API, _monotonicity, _get_ndarray_c_version, |
| 19 | + _set_madvise_hugepage, |
19 | 20 | ) |
20 | 21 |
|
21 | 22 | __all__ = [ |
22 | 23 | '_ARRAY_API', 'ALLOW_THREADS', 'BUFSIZE', 'CLIP', 'DATETIMEUNITS', |
23 | 24 | 'ITEM_HASOBJECT', 'ITEM_IS_POINTER', 'LIST_PICKLE', 'MAXDIMS', |
24 | 25 | 'MAY_SHARE_BOUNDS', 'MAY_SHARE_EXACT', 'NEEDS_INIT', 'NEEDS_PYAPI', |
25 | 26 | 'RAISE', 'USE_GETITEM', 'USE_SETITEM', 'WRAP', '_fastCopyAndTranspose', |
26 | | - '_flagdict', '_insert', '_reconstruct', '_vec_string', '_monotonicity', |
27 | | - 'add_docstring', 'arange', 'array', 'asarray', 'asanyarray', |
28 | | - 'ascontiguousarray', 'asfortranarray', 'bincount', 'broadcast', |
29 | | - 'busday_count', 'busday_offset', 'busdaycalendar', 'can_cast', |
| 27 | + '_flagdict', '_from_dlpack', '_insert', '_reconstruct', '_vec_string', |
| 28 | + '_monotonicity', 'add_docstring', 'arange', 'array', 'asarray', |
| 29 | + 'asanyarray', 'ascontiguousarray', 'asfortranarray', 'bincount', |
| 30 | + 'broadcast', 'busday_count', 'busday_offset', 'busdaycalendar', 'can_cast', |
30 | 31 | 'compare_chararrays', 'concatenate', 'copyto', 'correlate', 'correlate2', |
31 | 32 | 'count_nonzero', 'c_einsum', 'datetime_as_string', 'datetime_data', |
32 | 33 | 'dot', 'dragon4_positional', 'dragon4_scientific', 'dtype', |
33 | 34 | 'empty', 'empty_like', 'error', 'flagsobj', 'flatiter', 'format_longfloat', |
34 | | - 'frombuffer', 'fromfile', 'fromiter', 'fromstring', 'get_handler_name', |
35 | | - 'inner', 'interp', 'interp_complex', 'is_busday', 'lexsort', |
36 | | - 'matmul', 'may_share_memory', 'min_scalar_type', 'ndarray', 'nditer', |
37 | | - 'nested_iters', 'normalize_axis_index', 'packbits', |
| 35 | + 'frombuffer', 'fromfile', 'fromiter', 'fromstring', |
| 36 | + 'get_handler_name', 'inner', 'interp', 'interp_complex', 'is_busday', |
| 37 | + 'lexsort', 'matmul', 'may_share_memory', 'min_scalar_type', 'ndarray', |
| 38 | + 'nditer', 'nested_iters', 'normalize_axis_index', 'packbits', |
38 | 39 | 'promote_types', 'putmask', 'ravel_multi_index', 'result_type', 'scalar', |
39 | 40 | 'set_datetimeparse_function', 'set_legacy_print_mode', 'set_numeric_ops', |
40 | 41 | 'set_string_function', 'set_typeDict', 'shares_memory', |
|
46 | 47 | scalar.__module__ = 'numpy.core.multiarray' |
47 | 48 |
|
48 | 49 |
|
| 50 | +_from_dlpack.__module__ = 'numpy' |
49 | 51 | arange.__module__ = 'numpy' |
50 | 52 | array.__module__ = 'numpy' |
51 | 53 | asarray.__module__ = 'numpy' |
|
0 commit comments