NumericArrayType

NumericArrayType[array]

gives the underlying type of values used for each element in the NumericArray object.

Details

  • Possible returned types include:
  • "Integer8"signed 8-bit integers from through 127
    "UnsignedInteger8"integers 0 through 255
    "Integer16"signed 16-bit integers from through
    "UnsignedInteger16"integers 0 through 65535
    "Integer32"signed 32-bit integers from through
    "UnsignedInteger32"integers 0 through
    "Integer64"signed 64-bit integers from through
    "UnsignedInteger64"integers 0 through
    "Real32"single-precision real (32-bit)
    "Real64"double-precision real (64-bit)
    "ComplexReal32"single-precision complex
    "ComplexReal64"double-precision complex

Examples

Basic Examples  (2)

NumericArray of type "UnsignedInteger8":

In[5]:=
Click for copyable input
Out[5]=

Create a NumericArray using automatic type detection:

In[1]:=
Click for copyable input
Out[1]=

Extract the type automatically chosen for the object:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2019
(12.0)