NumericArrayQ

NumericArrayQ[expr]

gives True if expr is a valid NumericArray object, and False otherwise.

Examples

open allclose all

Basic Examples  (2)

A valid NumericArray object:

An expression with head NumericArray that is not a valid byte array object:

Possible Issues  (1)

The default conversion method will fail when the input array contains numbers that are out of range for the specified type.

Try to store in an "Integer8" numeric array:

Use the "ClipAndCoerce" method to automatically clip to the smallest "Integer8":

Introduced in 2019
 (12.0)