forked from arrayfire/arrayfire-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdtype_functions.py
More file actions
30 lines (17 loc) · 753 Bytes
/
dtype_functions.py
File metadata and controls
30 lines (17 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from .array_object import Array
from .dtypes import Dtype
# TODO implement functions
def astype(x: Array, dtype: Dtype, /, *, copy: bool = True) -> Array:
return NotImplemented
def can_cast(from_: Dtype | Array, to: Dtype, /) -> bool:
return NotImplemented
def finfo(type: Dtype | Array, /): # type: ignore[no-untyped-def]
# NOTE expected return type -> finfo_object
return NotImplemented
def iinfo(type: Dtype | Array, /): # type: ignore[no-untyped-def]
# NOTE expected return type -> iinfo_object
return NotImplemented
def isdtype(dtype: Dtype, kind: Dtype | str | tuple[Dtype | str, ...]) -> bool:
return NotImplemented
def result_type(*arrays_and_dtypes: Dtype | Array) -> Dtype:
return NotImplemented