Showing content from http://reference.wolfram.com/language/ref/compiledtype/NumericArray.html below:
NumericArray—Wolfram Language Documentation
WOLFRAM Consulting & Solutions
We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
- Data & Computational Intelligence
- Model-Based Design
- Algorithm Development
- Wolfram|Alpha for Business
- Blockchain Technology
- Education Technology
- Quantum Computation
WolframConsulting.com
COMPILED TYPE
"NumericArray" (Compiled Type)
"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.
- "NumericArray" objects are automatically memory managed.
- "NumericArray" objects support the same element types as NumericArray.
Constructors
- NumericArray[{…},type] creates a numeric array with the specified element type.
- CreateTypeInstance["NumericArray"::[type,rank],array] constructs a copy of array.
- CreateTypeInstance["NumericArray"::[type,1],carr,len] constructs a numeric array from a "CArray" carr with length len. carr can optionally be wrapped in "Managed".
Properties
- Information[array,"ElementType"] for array of type "NumericArray"::[type,rank] gives type .
Conversions
Expressions
- "NumericArray" objects can be converted to and from NumericArray expressions.
"ListVector"
- "NumericArray" objects can be converted to and from "ListVector" objects.
Runtime Errors
ArrayPartError
- Elements with types constructed from "NumericArray" can give a runtime error if used in an operation that extracts parts.
Examplesopen allclose all Basic Examples (2)
"NumericArray" can be used as an input and output from a CompiledCodeFunction.
Compile a function that returns a "NumericArray":
Use Normal to convert the "NumericArray" to a list:
Possible Issues (1)
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:
History
Introduced in 2019 (12.0) | Updated in 2022 (13.1)
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4