PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
core
from typing import Any, TypeVar, overload, Generic import ctypes as ct from numpy import ndarray from numpy.ctypeslib import c_intp _CastT = TypeVar("_CastT", bound=ct._CanCastTo) # Copied from `ctypes.cast` _CT = TypeVar("_CT", bound=ct._CData) _PT = TypeVar("_PT", bound=None | int) # TODO: Let the likes of `shape_as` and `strides_as` return `None` # for 0D arrays once we've got shape-support class _ctypes(Generic[_PT]): @overload def __new__(cls, array: ndarray[Any, Any], ptr: None = ...) -> _ctypes[None]: ... @overload def __new__(cls, array: ndarray[Any, Any], ptr: _PT) -> _ctypes[_PT]: ... @property def data(self) -> _PT: ... @property def shape(self) -> ct.Array[c_intp]: ... @property def strides(self) -> ct.Array[c_intp]: ... @property def _as_parameter_(self) -> ct.c_void_p: ... def data_as(self, obj: type[_CastT]) -> _CastT: ... def shape_as(self, obj: type[_CT]) -> ct.Array[_CT]: ... def strides_as(self, obj: type[_CT]) -> ct.Array[_CT]: ...
[-] _string_helpers.py
[open]
[+]
..
[-] numerictypes.pyi
[open]
[-] _type_aliases.py
[open]
[-] multiarray.py
[open]
[-] _asarray.py
[open]
[-] arrayprint.py
[open]
[+]
__pycache__
[+]
tests
[-] _add_newdocs_scalars.py
[open]
[-] setup_common.py
[open]
[-] memmap.pyi
[open]
[-] fromnumeric.py
[open]
[-] overrides.py
[open]
[-] _machar.py
[open]
[-] _operand_flag_tests.cpython-311-x86_64-linux-gnu.so
[open]
[-] _methods.py
[open]
[-] _add_newdocs.py
[open]
[-] _asarray.pyi
[open]
[-] einsumfunc.py
[open]
[-] defchararray.pyi
[open]
[-] getlimits.py
[open]
[-] generate_numpy_api.py
[open]
[-] _ufunc_config.pyi
[open]
[-] shape_base.py
[open]
[-] _dtype_ctypes.py
[open]
[-] numerictypes.py
[open]
[-] memmap.py
[open]
[-] _rational_tests.cpython-311-x86_64-linux-gnu.so
[open]
[-] einsumfunc.pyi
[open]
[-] _internal.pyi
[open]
[-] __init__.pyi
[open]
[-] records.pyi
[open]
[-] _multiarray_tests.cpython-311-x86_64-linux-gnu.so
[open]
[-] _multiarray_umath.cpython-311-x86_64-linux-gnu.so
[open]
[-] _umath_tests.cpython-311-x86_64-linux-gnu.so
[open]
[-] _type_aliases.pyi
[open]
[-] _simd.cpython-311-x86_64-linux-gnu.so
[open]
[-] umath_tests.py
[open]
[-] _internal.py
[open]
[-] fromnumeric.pyi
[open]
[-] function_base.pyi
[open]
[-] numeric.pyi
[open]
[-] defchararray.py
[open]
[-] numeric.py
[open]
[+]
lib
[-] function_base.py
[open]
[-] multiarray.pyi
[open]
[-] _struct_ufunc_tests.cpython-311-x86_64-linux-gnu.so
[open]
[-] __init__.py
[open]
[-] _exceptions.py
[open]
[-] umath.py
[open]
[-] setup.py
[open]
[-] _dtype.py
[open]
[+]
include
[-] arrayprint.pyi
[open]
[-] getlimits.pyi
[open]
[-] _ufunc_config.py
[open]
[-] cversions.py
[open]
[-] shape_base.pyi
[open]
[-] records.py
[open]