legendre.pyi 2.1 KB

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