@@ -1037,18 +1037,36 @@ def inv(
1037
1037
) -> onp .ArrayND [np .complex128 , _ShapeT ]: ...
1038
1038
1039
1039
# TODO(jorenham): improve this
1040
- @overload # floating 2d
1041
- def det (a : onp .ToFloatStrict2D , overwrite_a : bool = False , check_finite : bool = True ) -> _Float : ...
1042
- @overload # floating 3d
1043
- def det (a : onp .ToFloatStrict3D , overwrite_a : bool = False , check_finite : bool = True ) -> _Float1D : ...
1044
- @overload # floating
1045
- def det (a : onp .ToFloatND , overwrite_a : bool = False , check_finite : bool = True ) -> _Float | _FloatND : ...
1046
- @overload # complexfloating 2d
1047
- def det (a : onp .ToJustComplexStrict2D , overwrite_a : bool = False , check_finite : bool = True ) -> _Inexact1D : ...
1048
- @overload # complexfloating 3d
1049
- def det (a : onp .ToJustComplexStrict3D , overwrite_a : bool = False , check_finite : bool = True ) -> _InexactND : ...
1050
- @overload # complexfloating
1051
- def det (a : onp .ToComplexND , overwrite_a : bool = False , check_finite : bool = True ) -> _Inexact | _InexactND : ...
1040
+ @overload # +float64 2d
1041
+ def det (a : onp .ToFloat64Strict2D , overwrite_a : bool = False , check_finite : bool = True ) -> np .float64 : ...
1042
+ @overload # +float64 3d
1043
+ def det (a : onp .ToFloat64Strict3D , overwrite_a : bool = False , check_finite : bool = True ) -> onp .Array1D [np .float64 ]: ...
1044
+ @overload # +float64 ND
1045
+ def det (a : onp .ToFloat64_ND , overwrite_a : bool = False , check_finite : bool = True ) -> np .float64 | onp .ArrayND [np .float64 ]: ...
1046
+ @overload # complex128 | complex64 2d
1047
+ def det (
1048
+ a : onp .ToJustComplex128Strict2D | onp .CanArray2D [np .complex64 ], overwrite_a : bool = False , check_finite : bool = True
1049
+ ) -> np .complex128 : ...
1050
+ @overload # complex128 | complex64 3d
1051
+ def det (
1052
+ a : onp .ToJustComplex128Strict3D | onp .CanArray3D [np .complex64 ], overwrite_a : bool = False , check_finite : bool = True
1053
+ ) -> onp .Array1D [np .complex128 ]: ...
1054
+ @overload # complex128 | complex64 Nd
1055
+ def det (
1056
+ a : onp .ToJustComplex128_ND , overwrite_a : bool = False , check_finite : bool = True
1057
+ ) -> np .complex128 | onp .ArrayND [np .complex128 ]: ...
1058
+ @overload # +complex128 2d
1059
+ def det (
1060
+ a : onp .ToComplex128Strict2D | onp .CanArray2D [np .complex64 ], overwrite_a : bool = False , check_finite : bool = True
1061
+ ) -> np .float64 | np .complex128 : ...
1062
+ @overload # +complex128 3d
1063
+ def det (
1064
+ a : onp .ToComplex128Strict3D | onp .CanArray3D [np .complex64 ], overwrite_a : bool = False , check_finite : bool = True
1065
+ ) -> onp .Array1D [np .float64 | np .complex128 ]: ...
1066
+ @overload # +complex128 Nd
1067
+ def det (
1068
+ a : onp .ToComplex128_ND , overwrite_a : bool = False , check_finite : bool = True
1069
+ ) -> np .float64 | np .complex128 | onp .ArrayND [np .float64 | np .complex128 ]: ...
1052
1070
1053
1071
# TODO(jorenham): improve this
1054
1072
@overload # (float[:, :], float[:]) -> (float[:], float[], ...)
0 commit comments