$43 GRAYBYTE WORDPRESS FILE MANAGER $11

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/lib/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/lib//index_tricks.pyi
from collections.abc import Sequence
from typing import (
    Any,
    TypeVar,
    Generic,
    overload,
    Literal,
    SupportsIndex,
)

from numpy import (
    # Circumvent a naming conflict with `AxisConcatenator.matrix`
    matrix as _Matrix,
    ndenumerate as ndenumerate,
    ndindex as ndindex,
    ndarray,
    dtype,
    integer,
    str_,
    bytes_,
    bool_,
    int_,
    float_,
    complex_,
    intp,
    _OrderCF,
    _ModeKind,
)
from numpy._typing import (
    # Arrays
    ArrayLike,
    _NestedSequence,
    _FiniteNestedSequence,
    NDArray,
    _ArrayLikeInt,

    # DTypes
    DTypeLike,
    _SupportsDType,

    # Shapes
    _ShapeLike,
)

from numpy.core.multiarray import (
    unravel_index as unravel_index,
    ravel_multi_index as ravel_multi_index,
)

_T = TypeVar("_T")
_DType = TypeVar("_DType", bound=dtype[Any])
_BoolType = TypeVar("_BoolType", Literal[True], Literal[False])
_TupType = TypeVar("_TupType", bound=tuple[Any, ...])
_ArrayType = TypeVar("_ArrayType", bound=ndarray[Any, Any])

__all__: list[str]

@overload
def ix_(*args: _FiniteNestedSequence[_SupportsDType[_DType]]) -> tuple[ndarray[Any, _DType], ...]: ...
@overload
def ix_(*args: str | _NestedSequence[str]) -> tuple[NDArray[str_], ...]: ...
@overload
def ix_(*args: bytes | _NestedSequence[bytes]) -> tuple[NDArray[bytes_], ...]: ...
@overload
def ix_(*args: bool | _NestedSequence[bool]) -> tuple[NDArray[bool_], ...]: ...
@overload
def ix_(*args: int | _NestedSequence[int]) -> tuple[NDArray[int_], ...]: ...
@overload
def ix_(*args: float | _NestedSequence[float]) -> tuple[NDArray[float_], ...]: ...
@overload
def ix_(*args: complex | _NestedSequence[complex]) -> tuple[NDArray[complex_], ...]: ...

class nd_grid(Generic[_BoolType]):
    sparse: _BoolType
    def __init__(self, sparse: _BoolType = ...) -> None: ...
    @overload
    def __getitem__(
        self: nd_grid[Literal[False]],
        key: slice | Sequence[slice],
    ) -> NDArray[Any]: ...
    @overload
    def __getitem__(
        self: nd_grid[Literal[True]],
        key: slice | Sequence[slice],
    ) -> list[NDArray[Any]]: ...

class MGridClass(nd_grid[Literal[False]]):
    def __init__(self) -> None: ...

mgrid: MGridClass

class OGridClass(nd_grid[Literal[True]]):
    def __init__(self) -> None: ...

ogrid: OGridClass

class AxisConcatenator:
    axis: int
    matrix: bool
    ndmin: int
    trans1d: int
    def __init__(
        self,
        axis: int = ...,
        matrix: bool = ...,
        ndmin: int = ...,
        trans1d: int = ...,
    ) -> None: ...
    @staticmethod
    @overload
    def concatenate(  # type: ignore[misc]
        *a: ArrayLike, axis: SupportsIndex = ..., out: None = ...
    ) -> NDArray[Any]: ...
    @staticmethod
    @overload
    def concatenate(
        *a: ArrayLike, axis: SupportsIndex = ..., out: _ArrayType = ...
    ) -> _ArrayType: ...
    @staticmethod
    def makemat(
        data: ArrayLike, dtype: DTypeLike = ..., copy: bool = ...
    ) -> _Matrix[Any, Any]: ...

    # TODO: Sort out this `__getitem__` method
    def __getitem__(self, key: Any) -> Any: ...

class RClass(AxisConcatenator):
    axis: Literal[0]
    matrix: Literal[False]
    ndmin: Literal[1]
    trans1d: Literal[-1]
    def __init__(self) -> None: ...

r_: RClass

class CClass(AxisConcatenator):
    axis: Literal[-1]
    matrix: Literal[False]
    ndmin: Literal[2]
    trans1d: Literal[0]
    def __init__(self) -> None: ...

c_: CClass

class IndexExpression(Generic[_BoolType]):
    maketuple: _BoolType
    def __init__(self, maketuple: _BoolType) -> None: ...
    @overload
    def __getitem__(self, item: _TupType) -> _TupType: ...  # type: ignore[misc]
    @overload
    def __getitem__(self: IndexExpression[Literal[True]], item: _T) -> tuple[_T]: ...
    @overload
    def __getitem__(self: IndexExpression[Literal[False]], item: _T) -> _T: ...

index_exp: IndexExpression[Literal[True]]
s_: IndexExpression[Literal[False]]

def fill_diagonal(a: ndarray[Any, Any], val: Any, wrap: bool = ...) -> None: ...
def diag_indices(n: int, ndim: int = ...) -> tuple[NDArray[int_], ...]: ...
def diag_indices_from(arr: ArrayLike) -> tuple[NDArray[int_], ...]: ...

# NOTE: see `numpy/__init__.pyi` for `ndenumerate` and `ndindex`

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 8.00 AM
root / root
0
__pycache__
--
14 Aug 2025 9.25 PM
root / root
0755
tests
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
2.698 KB
17 Apr 2025 8.10 PM
root / root
0644
__init__.pyi
5.465 KB
17 Apr 2025 8.10 PM
root / root
0644
_datasource.py
22.101 KB
17 Apr 2025 8.10 PM
root / root
0644
_iotools.py
30.145 KB
17 Apr 2025 8.10 PM
root / root
0644
_version.py
4.741 KB
17 Apr 2025 8.10 PM
root / root
0644
_version.pyi
0.618 KB
17 Apr 2025 8.10 PM
root / root
0644
arraypad.py
31.058 KB
17 Apr 2025 8.10 PM
root / root
0644
arraypad.pyi
1.688 KB
17 Apr 2025 8.10 PM
root / root
0644
arraysetops.py
32.866 KB
17 Apr 2025 8.10 PM
root / root
0644
arraysetops.pyi
8.142 KB
17 Apr 2025 8.10 PM
root / root
0644
arrayterator.py
6.897 KB
17 Apr 2025 8.10 PM
root / root
0644
arrayterator.pyi
1.501 KB
17 Apr 2025 8.10 PM
root / root
0644
format.py
33.954 KB
17 Apr 2025 8.10 PM
root / root
0644
format.pyi
0.73 KB
17 Apr 2025 8.10 PM
root / root
0644
function_base.py
184.671 KB
17 Apr 2025 8.10 PM
root / root
0644
function_base.pyi
16.196 KB
17 Apr 2025 8.10 PM
root / root
0644
histograms.py
36.813 KB
17 Apr 2025 8.10 PM
root / root
0644
histograms.pyi
0.972 KB
17 Apr 2025 8.10 PM
root / root
0644
index_tricks.py
30.611 KB
17 Apr 2025 8.10 PM
root / root
0644
index_tricks.pyi
4.151 KB
17 Apr 2025 8.10 PM
root / root
0644
mixins.py
6.905 KB
17 Apr 2025 8.10 PM
root / root
0644
mixins.pyi
3.044 KB
17 Apr 2025 8.10 PM
root / root
0644
nanfunctions.py
64.233 KB
17 Apr 2025 8.10 PM
root / root
0644
nanfunctions.pyi
0.592 KB
17 Apr 2025 8.10 PM
root / root
0644
npyio.py
95.035 KB
17 Apr 2025 8.10 PM
root / root
0644
npyio.pyi
9.5 KB
17 Apr 2025 8.10 PM
root / root
0644
polynomial.py
43.099 KB
17 Apr 2025 8.10 PM
root / root
0644
polynomial.pyi
6.795 KB
17 Apr 2025 8.10 PM
root / root
0644
recfunctions.py
58.03 KB
17 Apr 2025 8.10 PM
root / root
0644
scimath.py
14.685 KB
17 Apr 2025 8.10 PM
root / root
0644
scimath.pyi
2.815 KB
17 Apr 2025 8.10 PM
root / root
0644
setup.py
0.396 KB
17 Apr 2025 8.10 PM
root / root
0644
shape_base.py
38.034 KB
17 Apr 2025 8.10 PM
root / root
0644
shape_base.pyi
5.063 KB
17 Apr 2025 8.10 PM
root / root
0644
stride_tricks.py
17.491 KB
17 Apr 2025 8.10 PM
root / root
0644
stride_tricks.pyi
1.706 KB
17 Apr 2025 8.10 PM
root / root
0644
twodim_base.py
32.175 KB
17 Apr 2025 8.10 PM
root / root
0644
twodim_base.pyi
5.244 KB
17 Apr 2025 8.10 PM
root / root
0644
type_check.py
19.486 KB
17 Apr 2025 8.10 PM
root / root
0644
type_check.pyi
5.44 KB
17 Apr 2025 8.10 PM
root / root
0644
ufunclike.py
6.177 KB
17 Apr 2025 8.10 PM
root / root
0644
ufunclike.pyi
1.263 KB
17 Apr 2025 8.10 PM
root / root
0644
user_array.py
7.54 KB
17 Apr 2025 8.10 PM
root / root
0644
utils.py
36.918 KB
17 Apr 2025 8.10 PM
root / root
0644
utils.pyi
2.305 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF