codekingpro/portable-devtools
114k
1import numpy as np
2import numpy.typing as npt
3
4AR_f8: npt.NDArray[np.float64]
5AR_c16: npt.NDArray[np.complex128]
6AR_O: npt.NDArray[np.object_]
7AR_U: npt.NDArray[np.str_]
8
9poly_obj: np.poly1d
10
11np.polymul(AR_f8, AR_U) # type: ignore[arg-type]
12np.polydiv(AR_f8, AR_U) # type: ignore[arg-type]
13
145**poly_obj # type: ignore[operator]
15
16np.polyint(AR_U) # type: ignore[arg-type]
17np.polyint(AR_f8, m=1j) # type: ignore[call-overload]
18
19np.polyder(AR_U) # type: ignore[arg-type]
20np.polyder(AR_f8, m=1j) # type: ignore[call-overload]
21
22np.polyfit(AR_O, AR_f8, 1) # type: ignore[arg-type]
23np.polyfit(AR_f8, AR_f8, 1, rcond=1j) # type: ignore[call-overload]
24np.polyfit(AR_f8, AR_f8, 1, w=AR_c16) # type: ignore[arg-type]
25np.polyfit(AR_f8, AR_f8, 1, cov="bob") # type: ignore[call-overload]
26
27np.polyval(AR_f8, AR_U) # type: ignore[arg-type]
28np.polyadd(AR_f8, AR_U) # type: ignore[arg-type]
29np.polysub(AR_f8, AR_U) # type: ignore[arg-type]
30 