arkouda.array_api.data_type_functions

Classes

Functions

astype(→ arkouda.array_api.array_object.Array)

Cast an array to a specified data type.

can_cast(→ bool)

Determine whether an array or dtype can be cast to another dtype.

finfo(→ finfo_object)

iinfo(→ iinfo_object)

isdtype(→ bool)

Returns a boolean indicating whether a provided dtype is of a specified data type kind.

result_type(→ arkouda.array_api._typing.Dtype)

Compute the result dtype for a group of arrays and/or dtypes.

Module Contents

arkouda.array_api.data_type_functions.astype(x: arkouda.array_api.array_object.Array, dtype: arkouda.array_api._typing.Dtype, /, *, copy: bool = True) arkouda.array_api.array_object.Array[source]

Cast an array to a specified data type.

arkouda.array_api.data_type_functions.can_cast(from_: arkouda.array_api._typing.Dtype | arkouda.array_api.array_object.Array, to: arkouda.array_api._typing.Dtype, /) bool[source]

Determine whether an array or dtype can be cast to another dtype.

arkouda.array_api.data_type_functions.finfo(type, /) finfo_object[source]
class arkouda.array_api.data_type_functions.finfo_object[source]
bits: int
dtype: arkouda.array_api._typing.Dtype
eps: float
max: float
min: float
smallest_normal: float
arkouda.array_api.data_type_functions.iinfo(type, /) iinfo_object[source]
class arkouda.array_api.data_type_functions.iinfo_object[source]
bits: int
dtype: arkouda.array_api._typing.Dtype
max: int
min: int
arkouda.array_api.data_type_functions.isdtype(dtype: arkouda.array_api._typing.Dtype, kind: arkouda.array_api._typing.Dtype | str | Tuple[arkouda.array_api._typing.Dtype | str, Ellipsis]) bool[source]

Returns a boolean indicating whether a provided dtype is of a specified data type kind.

arkouda.array_api.data_type_functions.result_type(*arrays_and_dtypes: arkouda.array_api.array_object.Array | arkouda.array_api._typing.Dtype) arkouda.array_api._typing.Dtype[source]

Compute the result dtype for a group of arrays and/or dtypes.