TypeSpecifier ( ::[...] )

Listing of Compiled Types »

TypeSpecifier[cons]

represents a type.

TypeSpecifier[cons][type1,] or cons::[type1,]

represents a compound type.

Details

  • Possible compound types include:
  • "PackedArray"::["type",rank]a packed array of specified rank containing elements of the specified native type
    "NumericArray"::["type",rank]a numeric array of specified rank containing elements of the specified native type

Examples

open allclose all

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:

Scope  (1)

TypeSpecifier can be entered using ::[ ] as an input syntax:

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

Text

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

CMS

Wolfram Language. 2019. "TypeSpecifier." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. 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

BibTeX

@misc{reference.wolfram_2024_typespecifier, author="Wolfram Research", title="{TypeSpecifier}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/TypeSpecifier.html}", note=[Accessed: 14-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_typespecifier, organization={Wolfram Research}, title={TypeSpecifier}, year={2022}, url={https://reference.wolfram.com/language/ref/TypeSpecifier.html}, note=[Accessed: 14-December-2024 ]}