_pocketfft.pyi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. from collections.abc import Sequence
  2. from typing import Literal as L
  3. from numpy import complex128, float64
  4. from numpy._typing import ArrayLike, NDArray, _ArrayLikeNumber_co
  5. _NormKind = L[None, "backward", "ortho", "forward"]
  6. __all__: list[str]
  7. def fft(
  8. a: ArrayLike,
  9. n: None | int = ...,
  10. axis: int = ...,
  11. norm: _NormKind = ...,
  12. ) -> NDArray[complex128]: ...
  13. def ifft(
  14. a: ArrayLike,
  15. n: None | int = ...,
  16. axis: int = ...,
  17. norm: _NormKind = ...,
  18. ) -> NDArray[complex128]: ...
  19. def rfft(
  20. a: ArrayLike,
  21. n: None | int = ...,
  22. axis: int = ...,
  23. norm: _NormKind = ...,
  24. ) -> NDArray[complex128]: ...
  25. def irfft(
  26. a: ArrayLike,
  27. n: None | int = ...,
  28. axis: int = ...,
  29. norm: _NormKind = ...,
  30. ) -> NDArray[float64]: ...
  31. # Input array must be compatible with `np.conjugate`
  32. def hfft(
  33. a: _ArrayLikeNumber_co,
  34. n: None | int = ...,
  35. axis: int = ...,
  36. norm: _NormKind = ...,
  37. ) -> NDArray[float64]: ...
  38. def ihfft(
  39. a: ArrayLike,
  40. n: None | int = ...,
  41. axis: int = ...,
  42. norm: _NormKind = ...,
  43. ) -> NDArray[complex128]: ...
  44. def fftn(
  45. a: ArrayLike,
  46. s: None | Sequence[int] = ...,
  47. axes: None | Sequence[int] = ...,
  48. norm: _NormKind = ...,
  49. ) -> NDArray[complex128]: ...
  50. def ifftn(
  51. a: ArrayLike,
  52. s: None | Sequence[int] = ...,
  53. axes: None | Sequence[int] = ...,
  54. norm: _NormKind = ...,
  55. ) -> NDArray[complex128]: ...
  56. def rfftn(
  57. a: ArrayLike,
  58. s: None | Sequence[int] = ...,
  59. axes: None | Sequence[int] = ...,
  60. norm: _NormKind = ...,
  61. ) -> NDArray[complex128]: ...
  62. def irfftn(
  63. a: ArrayLike,
  64. s: None | Sequence[int] = ...,
  65. axes: None | Sequence[int] = ...,
  66. norm: _NormKind = ...,
  67. ) -> NDArray[float64]: ...
  68. def fft2(
  69. a: ArrayLike,
  70. s: None | Sequence[int] = ...,
  71. axes: None | Sequence[int] = ...,
  72. norm: _NormKind = ...,
  73. ) -> NDArray[complex128]: ...
  74. def ifft2(
  75. a: ArrayLike,
  76. s: None | Sequence[int] = ...,
  77. axes: None | Sequence[int] = ...,
  78. norm: _NormKind = ...,
  79. ) -> NDArray[complex128]: ...
  80. def rfft2(
  81. a: ArrayLike,
  82. s: None | Sequence[int] = ...,
  83. axes: None | Sequence[int] = ...,
  84. norm: _NormKind = ...,
  85. ) -> NDArray[complex128]: ...
  86. def irfft2(
  87. a: ArrayLike,
  88. s: None | Sequence[int] = ...,
  89. axes: None | Sequence[int] = ...,
  90. norm: _NormKind = ...,
  91. ) -> NDArray[float64]: ...