TypeSpecifier

Listing of Compiled Types »

TypeSpecifier[cons]

represents a type specifier that can be applied to other types to create a compound type using the type constructor cons.

Details

  • TypeSpecifier[cons][type1,] represents a compound type for use in Typed.
  • Possible compound types include:
  • TypeSpecifier["PackedArray"]["type",rank]a packed array of specified rank containing elements of the specified native type
    TypeSpecifier["NumericArray"]["type",rank]a numeric array of specified rank containing elements of the specified native type

Examples

Basic Examples  (1)

A Function that takes a vector of real numbers as input:

In[1]:=
Click for copyable input

Compile the function into machine code:

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

Execute the compiled machine code:

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