Showing content from http://reference.wolfram.com/language/ref/compiledtype/UnsignedMachineInteger.html below:
UnsignedMachineInteger—Wolfram Documentation
WOLFRAM Consulting & Solutions
We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technical expertise
- Data & Computational Intelligence
- Model-Based Design
- Algorithm Development
- Wolfram|Alpha for Business
- Blockchain Technology
- Education Technology
- Quantum Computation
WolframConsulting.com
"UnsignedMachineInteger"
represents a machine-sized unsigned integer atomic type specifier.
Details
- "UnsignedMachineInteger" can be used in Typed and related constructs to specify a type.
- On 64-bit platforms, "UnsignedMachineInteger" is an "UnsignedInteger64".
- On 32-bit platforms, "UnsignedMachineInteger" is an "UnsignedInteger32".
Properties
- Values held by "UnsignedMachineInteger" range from 0 to 264-1 on 64-bit architectures.
- Values held by "UnsignedMachineInteger" range from 0 to 232-1 on 32-bit architectures.
Conversions
From Expressions
- Suitably sized Integer expressions can be converted into compiled code elements with the type "UnsignedMachineInteger".
To Expressions
- "UnsignedMachineInteger" compiled elements can be converted into Integer expressions.
Arithmetic
- "UnsignedMachineInteger" compiled elements are automatically promoted to real or complex elements when they are combined in binary arithmetic operations.
- Compiled elements with types smaller than "UnsignedMachineInteger" are automatically promoted to "UnsignedMachineInteger" when they are combined in binary arithmetic operations.
Runtime Errors
Overflow
- "UnsignedMachineInteger" can give a runtime error if it is used in an operation that overflows.
Examples Basic Examples (4)
"UnsignedMachineInteger" can be used as an input and output from a CompiledCodeFunction:
"UnsignedMachineInteger" has the same size as $SystemWordLength:
An overflow causes an error while running the function. The computation is terminated, a message is issued and the Wolfram Engine is used to compute the result:
The "UnsignedMachineInteger" argument is automatically promoted when combined with a real number:
When an "UnsignedMachineInteger" argument is combined with an integer of a smaller storage size, the smaller type is automatically promoted:
"UnsignedMachineInteger" is useful for working with "PackedArray", since this takes integers of the native size for the architecture:
History
Introduced in 2019 (12.0)
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