legendre.pyi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. _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 legtrim
  29. __all__ = [
  30. "legzero",
  31. "legone",
  32. "legx",
  33. "legdomain",
  34. "legline",
  35. "legadd",
  36. "legsub",
  37. "legmulx",
  38. "legmul",
  39. "legdiv",
  40. "legpow",
  41. "legval",
  42. "legder",
  43. "legint",
  44. "leg2poly",
  45. "poly2leg",
  46. "legfromroots",
  47. "legvander",
  48. "legfit",
  49. "legtrim",
  50. "legroots",
  51. "Legendre",
  52. "legval2d",
  53. "legval3d",
  54. "leggrid2d",
  55. "leggrid3d",
  56. "legvander2d",
  57. "legvander3d",
  58. "legcompanion",
  59. "leggauss",
  60. "legweight",
  61. ]
  62. poly2leg: _FuncPoly2Ortho[L["poly2leg"]]
  63. leg2poly: _FuncUnOp[L["leg2poly"]]
  64. legdomain: Final[_Array2[np.float64]]
  65. legzero: Final[_Array1[np.int_]]
  66. legone: Final[_Array1[np.int_]]
  67. legx: Final[_Array2[np.int_]]
  68. legline: _FuncLine[L["legline"]]
  69. legfromroots: _FuncFromRoots[L["legfromroots"]]
  70. legadd: _FuncBinOp[L["legadd"]]
  71. legsub: _FuncBinOp[L["legsub"]]
  72. legmulx: _FuncUnOp[L["legmulx"]]
  73. legmul: _FuncBinOp[L["legmul"]]
  74. legdiv: _FuncBinOp[L["legdiv"]]
  75. legpow: _FuncPow[L["legpow"]]
  76. legder: _FuncDer[L["legder"]]
  77. legint: _FuncInteg[L["legint"]]
  78. legval: _FuncVal[L["legval"]]
  79. legval2d: _FuncVal2D[L["legval2d"]]
  80. legval3d: _FuncVal3D[L["legval3d"]]
  81. legvalfromroots: _FuncValFromRoots[L["legvalfromroots"]]
  82. leggrid2d: _FuncVal2D[L["leggrid2d"]]
  83. leggrid3d: _FuncVal3D[L["leggrid3d"]]
  84. legvander: _FuncVander[L["legvander"]]
  85. legvander2d: _FuncVander2D[L["legvander2d"]]
  86. legvander3d: _FuncVander3D[L["legvander3d"]]
  87. legfit: _FuncFit[L["legfit"]]
  88. legcompanion: _FuncCompanion[L["legcompanion"]]
  89. legroots: _FuncRoots[L["legroots"]]
  90. leggauss: _FuncGauss[L["leggauss"]]
  91. legweight: _FuncWeight[L["legweight"]]
  92. class Legendre(ABCPolyBase[L["P"]]): ...