hermite.pyi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. from typing import Any, Final, TypeVar
  2. from typing import Literal as L
  3. import numpy as np
  4. from ._polybase import ABCPolyBase
  5. from ._polytypes import (
  6. _Array1,
  7. _Array2,
  8. _FuncBinOp,
  9. _FuncCompanion,
  10. _FuncDer,
  11. _FuncFit,
  12. _FuncFromRoots,
  13. _FuncGauss,
  14. _FuncInteg,
  15. _FuncLine,
  16. _FuncPoly2Ortho,
  17. _FuncPow,
  18. _FuncRoots,
  19. _FuncUnOp,
  20. _FuncVal,
  21. _FuncVal2D,
  22. _FuncVal3D,
  23. _FuncValFromRoots,
  24. _FuncVander,
  25. _FuncVander2D,
  26. _FuncVander3D,
  27. _FuncWeight,
  28. )
  29. from .polyutils import trimcoef as hermtrim
  30. __all__ = [
  31. "hermzero",
  32. "hermone",
  33. "hermx",
  34. "hermdomain",
  35. "hermline",
  36. "hermadd",
  37. "hermsub",
  38. "hermmulx",
  39. "hermmul",
  40. "hermdiv",
  41. "hermpow",
  42. "hermval",
  43. "hermder",
  44. "hermint",
  45. "herm2poly",
  46. "poly2herm",
  47. "hermfromroots",
  48. "hermvander",
  49. "hermfit",
  50. "hermtrim",
  51. "hermroots",
  52. "Hermite",
  53. "hermval2d",
  54. "hermval3d",
  55. "hermgrid2d",
  56. "hermgrid3d",
  57. "hermvander2d",
  58. "hermvander3d",
  59. "hermcompanion",
  60. "hermgauss",
  61. "hermweight",
  62. ]
  63. poly2herm: _FuncPoly2Ortho[L["poly2herm"]]
  64. herm2poly: _FuncUnOp[L["herm2poly"]]
  65. hermdomain: Final[_Array2[np.float64]]
  66. hermzero: Final[_Array1[np.int_]]
  67. hermone: Final[_Array1[np.int_]]
  68. hermx: Final[_Array2[np.int_]]
  69. hermline: _FuncLine[L["hermline"]]
  70. hermfromroots: _FuncFromRoots[L["hermfromroots"]]
  71. hermadd: _FuncBinOp[L["hermadd"]]
  72. hermsub: _FuncBinOp[L["hermsub"]]
  73. hermmulx: _FuncUnOp[L["hermmulx"]]
  74. hermmul: _FuncBinOp[L["hermmul"]]
  75. hermdiv: _FuncBinOp[L["hermdiv"]]
  76. hermpow: _FuncPow[L["hermpow"]]
  77. hermder: _FuncDer[L["hermder"]]
  78. hermint: _FuncInteg[L["hermint"]]
  79. hermval: _FuncVal[L["hermval"]]
  80. hermval2d: _FuncVal2D[L["hermval2d"]]
  81. hermval3d: _FuncVal3D[L["hermval3d"]]
  82. hermvalfromroots: _FuncValFromRoots[L["hermvalfromroots"]]
  83. hermgrid2d: _FuncVal2D[L["hermgrid2d"]]
  84. hermgrid3d: _FuncVal3D[L["hermgrid3d"]]
  85. hermvander: _FuncVander[L["hermvander"]]
  86. hermvander2d: _FuncVander2D[L["hermvander2d"]]
  87. hermvander3d: _FuncVander3D[L["hermvander3d"]]
  88. hermfit: _FuncFit[L["hermfit"]]
  89. hermcompanion: _FuncCompanion[L["hermcompanion"]]
  90. hermroots: _FuncRoots[L["hermroots"]]
  91. _ND = TypeVar("_ND", bound=Any)
  92. def _normed_hermite_n(
  93. x: np.ndarray[_ND, np.dtype[np.float64]],
  94. n: int | np.intp,
  95. ) -> np.ndarray[_ND, np.dtype[np.float64]]: ...
  96. hermgauss: _FuncGauss[L["hermgauss"]]
  97. hermweight: _FuncWeight[L["hermweight"]]
  98. class Hermite(ABCPolyBase[L["H"]]): ...