_pcg64.pyi 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. from typing import TypedDict
  2. from numpy.random.bit_generator import BitGenerator, SeedSequence
  3. from numpy._typing import _ArrayLikeInt_co
  4. class _PCG64Internal(TypedDict):
  5. state: int
  6. inc: int
  7. class _PCG64State(TypedDict):
  8. bit_generator: str
  9. state: _PCG64Internal
  10. has_uint32: int
  11. uinteger: int
  12. class PCG64(BitGenerator):
  13. def __init__(self, seed: None | _ArrayLikeInt_co | SeedSequence = ...) -> None: ...
  14. def jumped(self, jumps: int = ...) -> PCG64: ...
  15. @property
  16. def state(
  17. self,
  18. ) -> _PCG64State: ...
  19. @state.setter
  20. def state(
  21. self,
  22. value: _PCG64State,
  23. ) -> None: ...
  24. def advance(self, delta: int) -> PCG64: ...
  25. class PCG64DXSM(BitGenerator):
  26. def __init__(self, seed: None | _ArrayLikeInt_co | SeedSequence = ...) -> None: ...
  27. def jumped(self, jumps: int = ...) -> PCG64DXSM: ...
  28. @property
  29. def state(
  30. self,
  31. ) -> _PCG64State: ...
  32. @state.setter
  33. def state(
  34. self,
  35. value: _PCG64State,
  36. ) -> None: ...
  37. def advance(self, delta: int) -> PCG64DXSM: ...