@stdlib/array-safe-casts
Return a list of array data types to which a provided array data type can be safely cast.
Return a list of array data types to which a provided array data type can be safely cast.
Return a list of array data types to which a provided array data type can be safely cast or cast within the same kind.
Convert an array to an array of a different data type.
Convert an array to the same data type as a second input array.
Create a single-element array containing a provided scalar value.
Return a list of array data types to which a provided array data type can be safely cast and, for floating-point data types, can be downcast.
Return the next larger array data type of the same kind.
Reinterpret a BooleanArray as a Uint8Array.
Reinterpret a complex-valued floating-point array as a real-valued floating-point array having the same precision.
Reinterpret a Complex128Array as a Float64Array.
Reinterpret a Complex64Array as a Float32Array.
List of ndarray casting modes.
Return the ndarray data type with the smallest size and closest kind to which ndarray data types can be safely cast.
Return a list of ndarray data types to which a provided ndarray data type can be safely cast.
Return a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same kind.
Return a list of ndarray data types to which a provided ndarray data type can be safely cast and, for floating-point data types, can be downcast.
Return the next larger ndarray data type of the same kind.
Convert a single-precision floating-point number to a signed 32-bit integer.
Convert a single-precision floating-point number to an unsigned 32-bit integer.
Convert an unsigned 32-bit integer to a signed 32-bit integer.