"NumericArray" (Compiled Type)

TypeSpecifier["NumericArray"][type,rank]

represents a numeric array composite type with elements of specified type and rank.

Details

  • "NumericArray" can be used in Typed and related constructs to specify a type.

Expression Conversions

    From Expressions

  • NumericArray expressions can be converted into compiled code elements with types created with "NumericArray".
  • To Expressions

  • Compiled code elements with types created with "NumericArray" can be converted into NumericArray expressions.

Run-Time Errors

    ArrayPartError

  • Elements with types constructed from "NumericArray" can give a runtime error if used in an operation that extracts parts.

Examples

Basic Examples  (2)

"NumericArray" can be used as an input and output from a CompiledCodeFunction.

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

Part access can cause an error while running the function. The computation is terminated, a message is issued and the Wolfram Engine is used to compute the result:

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