@@ -5,29 +5,34 @@ import numpy as np
5
5
from _numtype import Array , Array_1d
6
6
7
7
from ._polybase import ABCPolyBase
8
- from ._polytypes import (
9
- _FuncBinOp ,
10
- _FuncCompanion ,
11
- _FuncDer ,
12
- _FuncFit ,
13
- _FuncFromRoots ,
14
- _FuncGauss ,
15
- _FuncInteg ,
16
- _FuncLine ,
17
- _FuncPoly2Ortho ,
18
- _FuncPow ,
19
- _FuncRoots ,
20
- _FuncUnOp ,
21
- _FuncVal ,
22
- _FuncVal2D ,
23
- _FuncVal3D ,
24
- _FuncValFromRoots ,
25
- _FuncVander ,
26
- _FuncVander2D ,
27
- _FuncVander3D ,
28
- _FuncWeight ,
8
+ from .legendre import (
9
+ leg2poly as herm2poly ,
10
+ legadd as hermadd ,
11
+ legcompanion as hermcompanion ,
12
+ legder as hermder ,
13
+ legdiv as hermdiv ,
14
+ legfit as hermfit ,
15
+ legfromroots as hermfromroots ,
16
+ leggauss as hermgauss ,
17
+ leggrid2d as hermgrid2d ,
18
+ leggrid3d as hermgrid3d ,
19
+ legint as hermint ,
20
+ legline as hermline ,
21
+ legmul as hermmul ,
22
+ legmulx as hermmulx ,
23
+ legpow as hermpow ,
24
+ legroots as hermroots ,
25
+ legsub as hermsub ,
26
+ legtrim as hermtrim ,
27
+ legval as hermval ,
28
+ legval2d as hermval2d ,
29
+ legval3d as hermval3d ,
30
+ legvander as hermvander ,
31
+ legvander2d as hermvander2d ,
32
+ legvander3d as hermvander3d ,
33
+ legweight as hermweight ,
34
+ poly2leg as poly2herm ,
29
35
)
30
- from .polyutils import trimcoef as hermtrim
31
36
32
37
__all__ = [
33
38
"Hermite" ,
@@ -63,43 +68,20 @@ __all__ = [
63
68
"poly2herm" ,
64
69
]
65
70
71
+ ###
72
+
66
73
_ShapeT = TypeVar ("_ShapeT" , bound = tuple [int , ...])
67
74
75
+ ###
76
+
68
77
hermdomain : Final [Array_1d [np .float64 ]] = ...
69
78
hermzero : Final [Array_1d [np .int_ ]] = ...
70
79
hermone : Final [Array_1d [np .int_ ]] = ...
71
80
hermx : Final [Array_1d [np .int_ ]] = ...
72
81
73
- poly2herm : Final [_FuncPoly2Ortho [L ["poly2herm" ]]] = ...
74
- herm2poly : Final [_FuncUnOp [L ["herm2poly" ]]] = ...
75
- hermline : Final [_FuncLine [L ["hermline" ]]] = ...
76
- hermfromroots : Final [_FuncFromRoots [L ["hermfromroots" ]]] = ...
77
- hermadd : Final [_FuncBinOp [L ["hermadd" ]]] = ...
78
- hermsub : Final [_FuncBinOp [L ["hermsub" ]]] = ...
79
- hermmulx : Final [_FuncUnOp [L ["hermmulx" ]]] = ...
80
- hermmul : Final [_FuncBinOp [L ["hermmul" ]]] = ...
81
- hermdiv : Final [_FuncBinOp [L ["hermdiv" ]]] = ...
82
- hermpow : Final [_FuncPow [L ["hermpow" ]]] = ...
83
- hermder : Final [_FuncDer [L ["hermder" ]]] = ...
84
- hermint : Final [_FuncInteg [L ["hermint" ]]] = ...
85
- hermval : Final [_FuncVal [L ["hermval" ]]] = ...
86
- hermval2d : Final [_FuncVal2D [L ["hermval2d" ]]] = ...
87
- hermval3d : Final [_FuncVal3D [L ["hermval3d" ]]] = ...
88
- hermvalfromroots : Final [_FuncValFromRoots [L ["hermvalfromroots" ]]] = ...
89
- hermgrid2d : Final [_FuncVal2D [L ["hermgrid2d" ]]] = ...
90
- hermgrid3d : Final [_FuncVal3D [L ["hermgrid3d" ]]] = ...
91
- hermvander : Final [_FuncVander [L ["hermvander" ]]] = ...
92
- hermvander2d : Final [_FuncVander2D [L ["hermvander2d" ]]] = ...
93
- hermvander3d : Final [_FuncVander3D [L ["hermvander3d" ]]] = ...
94
- hermfit : Final [_FuncFit [L ["hermfit" ]]] = ...
95
- hermcompanion : Final [_FuncCompanion [L ["hermcompanion" ]]] = ...
96
- hermroots : Final [_FuncRoots [L ["hermroots" ]]] = ...
97
- hermgauss : Final [_FuncGauss [L ["hermgauss" ]]] = ...
98
- hermweight : Final [_FuncWeight [L ["hermweight" ]]] = ...
99
-
100
- def _normed_hermite_n (x : Array [np .float64 , _ShapeT ], n : int | np .intp ) -> Array [np .float64 , _ShapeT ]: ...
101
-
102
82
class Hermite (ABCPolyBase ):
103
83
domain : Array_1d [np .float64 ] = ... # pyright: ignore[reportIncompatibleMethodOverride]
104
84
window : Array_1d [np .float64 ] = ... # pyright: ignore[reportIncompatibleMethodOverride]
105
85
basis_name : L ["H" ] = "H" # pyright: ignore[reportIncompatibleMethodOverride]
86
+
87
+ def _normed_hermite_n (x : Array [np .float64 , _ShapeT ], n : int | np .intp ) -> Array [np .float64 , _ShapeT ]: ...
0 commit comments