arkouda.array_api._data_type_functions

Module Contents

Classes

Functions

astype(→ arkouda.array_api._array_object.Array)

can_cast(→ bool)

Array API compatible wrapper for np.can_cast.

isdtype(→ bool)

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

result_type(→ arkouda.array_api._typing.Dtype)

Array API compatible wrapper for np.result_type.

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]
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]

Array API compatible wrapper for np.can_cast.

See its docstring for more information.

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
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.

See https://data-apis.org/array-api/latest/API_specification/generated/array_api.isdtype.html for more details

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]

Array API compatible wrapper for np.result_type.

See its docstring for more information.