hermite.pyi 2.4 KB

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