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:

Compile the function into machine code:

Execute the compiled machine code:

Wolfram Research (2019), TypeSpecifier, Wolfram Language function, https://reference.wolfram.com/language/ref/TypeSpecifier.html.

Text

Wolfram Research (2019), TypeSpecifier, Wolfram Language function, https://reference.wolfram.com/language/ref/TypeSpecifier.html.

BibTeX

@misc{reference.wolfram_2021_typespecifier, author="Wolfram Research", title="{TypeSpecifier}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/TypeSpecifier.html}", note=[Accessed: 19-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_typespecifier, organization={Wolfram Research}, title={TypeSpecifier}, year={2019}, url={https://reference.wolfram.com/language/ref/TypeSpecifier.html}, note=[Accessed: 19-September-2021 ]}

CMS

Wolfram Language. 2019. "TypeSpecifier." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TypeSpecifier.html.

APA

Wolfram Language. (2019). TypeSpecifier. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TypeSpecifier.html