polynomial.pyi 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. from typing import Final, Literal as L
  2. import numpy as np
  3. from ._polybase import ABCPolyBase
  4. from ._polytypes import (
  5. _Array1,
  6. _Array2,
  7. _FuncVal2D,
  8. _FuncVal3D,
  9. _FuncBinOp,
  10. _FuncCompanion,
  11. _FuncDer,
  12. _FuncFit,
  13. _FuncFromRoots,
  14. _FuncInteg,
  15. _FuncLine,
  16. _FuncPow,
  17. _FuncRoots,
  18. _FuncUnOp,
  19. _FuncVal,
  20. _FuncVander,
  21. _FuncVander2D,
  22. _FuncVander3D,
  23. _FuncValFromRoots,
  24. )
  25. from .polyutils import trimcoef as polytrim
  26. __all__ = [
  27. "polyzero",
  28. "polyone",
  29. "polyx",
  30. "polydomain",
  31. "polyline",
  32. "polyadd",
  33. "polysub",
  34. "polymulx",
  35. "polymul",
  36. "polydiv",
  37. "polypow",
  38. "polyval",
  39. "polyvalfromroots",
  40. "polyder",
  41. "polyint",
  42. "polyfromroots",
  43. "polyvander",
  44. "polyfit",
  45. "polytrim",
  46. "polyroots",
  47. "Polynomial",
  48. "polyval2d",
  49. "polyval3d",
  50. "polygrid2d",
  51. "polygrid3d",
  52. "polyvander2d",
  53. "polyvander3d",
  54. "polycompanion",
  55. ]
  56. polydomain: Final[_Array2[np.float64]]
  57. polyzero: Final[_Array1[np.int_]]
  58. polyone: Final[_Array1[np.int_]]
  59. polyx: Final[_Array2[np.int_]]
  60. polyline: _FuncLine[L["Polyline"]]
  61. polyfromroots: _FuncFromRoots[L["polyfromroots"]]
  62. polyadd: _FuncBinOp[L["polyadd"]]
  63. polysub: _FuncBinOp[L["polysub"]]
  64. polymulx: _FuncUnOp[L["polymulx"]]
  65. polymul: _FuncBinOp[L["polymul"]]
  66. polydiv: _FuncBinOp[L["polydiv"]]
  67. polypow: _FuncPow[L["polypow"]]
  68. polyder: _FuncDer[L["polyder"]]
  69. polyint: _FuncInteg[L["polyint"]]
  70. polyval: _FuncVal[L["polyval"]]
  71. polyval2d: _FuncVal2D[L["polyval2d"]]
  72. polyval3d: _FuncVal3D[L["polyval3d"]]
  73. polyvalfromroots: _FuncValFromRoots[L["polyvalfromroots"]]
  74. polygrid2d: _FuncVal2D[L["polygrid2d"]]
  75. polygrid3d: _FuncVal3D[L["polygrid3d"]]
  76. polyvander: _FuncVander[L["polyvander"]]
  77. polyvander2d: _FuncVander2D[L["polyvander2d"]]
  78. polyvander3d: _FuncVander3D[L["polyvander3d"]]
  79. polyfit: _FuncFit[L["polyfit"]]
  80. polycompanion: _FuncCompanion[L["polycompanion"]]
  81. polyroots: _FuncRoots[L["polyroots"]]
  82. class Polynomial(ABCPolyBase[None]): ...