1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
| from collections.abc import Iterable
| from typing import Any, SupportsIndex, TypeVar, overload
|
| from numpy import generic
| from numpy._typing import ArrayLike, NDArray, _AnyShape, _ArrayLike, _ShapeLike
|
| __all__ = ["broadcast_to", "broadcast_arrays", "broadcast_shapes"]
|
| _ScalarT = TypeVar("_ScalarT", bound=generic)
|
| class DummyArray:
| __array_interface__: dict[str, Any]
| base: NDArray[Any] | None
| def __init__(
| self,
| interface: dict[str, Any],
| base: NDArray[Any] | None = ...,
| ) -> None: ...
|
| @overload
| def as_strided(
| x: _ArrayLike[_ScalarT],
| shape: Iterable[int] | None = ...,
| strides: Iterable[int] | None = ...,
| subok: bool = ...,
| writeable: bool = ...,
| ) -> NDArray[_ScalarT]: ...
| @overload
| def as_strided(
| x: ArrayLike,
| shape: Iterable[int] | None = ...,
| strides: Iterable[int] | None = ...,
| subok: bool = ...,
| writeable: bool = ...,
| ) -> NDArray[Any]: ...
|
| @overload
| def sliding_window_view(
| x: _ArrayLike[_ScalarT],
| window_shape: int | Iterable[int],
| axis: SupportsIndex | None = ...,
| *,
| subok: bool = ...,
| writeable: bool = ...,
| ) -> NDArray[_ScalarT]: ...
| @overload
| def sliding_window_view(
| x: ArrayLike,
| window_shape: int | Iterable[int],
| axis: SupportsIndex | None = ...,
| *,
| subok: bool = ...,
| writeable: bool = ...,
| ) -> NDArray[Any]: ...
|
| @overload
| def broadcast_to(
| array: _ArrayLike[_ScalarT],
| shape: int | Iterable[int],
| subok: bool = ...,
| ) -> NDArray[_ScalarT]: ...
| @overload
| def broadcast_to(
| array: ArrayLike,
| shape: int | Iterable[int],
| subok: bool = ...,
| ) -> NDArray[Any]: ...
|
| def broadcast_shapes(*args: _ShapeLike) -> _AnyShape: ...
|
| def broadcast_arrays(
| *args: ArrayLike,
| subok: bool = ...,
| ) -> tuple[NDArray[Any], ...]: ...
|
|