stride_tricks.pyi 510 B

12345678910111213141516
  1. from typing import Any, List
  2. from numpy.typing import _ShapeLike, _Shape
  3. __all__: List[str]
  4. class DummyArray:
  5. __array_interface__: Any
  6. base: Any
  7. def __init__(self, interface, base=...): ...
  8. def as_strided(x, shape=..., strides=..., subok=..., writeable=...): ...
  9. def sliding_window_view(x, window_shape, axis=..., *, subok=..., writeable=...): ...
  10. def broadcast_to(array, shape, subok=...): ...
  11. def broadcast_shapes(*args: _ShapeLike) -> _Shape: ...
  12. def broadcast_arrays(*args, subok=...): ...