Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions quaddtype/numpy_quaddtype/_quaddtype_main.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Literal, TypeAlias, final
from typing import Any, Literal, TypeAlias, final, overload

import numpy as np
from typing_extensions import Never, Self, override
Expand Down Expand Up @@ -109,6 +109,10 @@ class QuadPrecision: # NOTE: It doesn't inherit from `np.generic` which is type

#
def is_longdouble_128() -> bool: ...

@overload
def get_sleef_constant(constant_name: Literal["bits", "precision"], /) -> int: ...
@overload
def get_sleef_constant(
constant_name: Literal[
"pi",
Expand All @@ -121,14 +125,11 @@ def get_sleef_constant(
"epsilon",
"smallest_normal",
"smallest_subnormal",
"bits",
"precision",
"resolution",
],
/,
) -> QuadPrecision: ...

def set_num_threads(num_threads: int, /) -> None: ...
def get_num_threads() -> int: ...
def get_quadblas_version() -> Literal[
"QuadBLAS 1.0.0 - High Performance Quad Precision BLAS"
]: ...
def get_quadblas_version() -> str: ...
Loading