Docs/Numerical Arrays (NumPy)/np.dtypeToTypedArrayConstructor
Back to Numerical Arrays (NumPy)

np.dtypeToTypedArrayConstructor

Get the TypedArray constructor for a given dtype.

Syntax

np.dtypeToTypedArrayConstructor(dtype)

Description

Get the TypedArray constructor for a given dtype.

Parameters

NameDescription
dtype- DType enum value

Returns

Float32ArrayConstructor | Float64ArrayConstructor | Int32ArrayConstructor | Int16ArrayConstructor | Int8ArrayConstructor | Uint32ArrayConstructor | Uint16ArrayConstructor | Uint8ArrayConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor