diff options
Diffstat (limited to 'numpy/core')
| -rw-r--r-- | numpy/core/getlimits.pyi | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/numpy/core/getlimits.pyi b/numpy/core/getlimits.pyi new file mode 100644 index 000000000..983d05f36 --- /dev/null +++ b/numpy/core/getlimits.pyi @@ -0,0 +1,54 @@ +from typing import Any, Generic, List, Type, TypeVar + +from numpy import ( + finfo as finfo, + iinfo as iinfo, + floating, + signedinteger, +) + +from numpy.typing import NBitBase, NDArray + +_NBit = TypeVar("_NBit", bound=NBitBase) + +__all__: List[str] + +class MachArLike(Generic[_NBit]): + def __init__( + self, + ftype: Type[floating[_NBit]], + *, + eps: floating[Any], + epsneg: floating[Any], + huge: floating[Any], + tiny: floating[Any], + ibeta: int, + # Expand `**kwargs` into keyword-only arguments + machep: int, + negep: int, + minexp: int, + maxexp: int, + it: int, + iexp: int, + irnd: int, + ngrd: int, + ) -> None: ... + eps: NDArray[floating[_NBit]] + epsilon: NDArray[floating[_NBit]] + epsneg: NDArray[floating[_NBit]] + huge: NDArray[floating[_NBit]] + ibeta: signedinteger[_NBit] + iexp: int + irnd: int + it: int + machep: int + maxexp: int + minexp: int + negep: int + ngrd: int + precision: int + resolution: NDArray[floating[_NBit]] + tiny: NDArray[floating[_NBit]] + title: str + xmax: NDArray[floating[_NBit]] + xmin: NDArray[floating[_NBit]] |
