Constructs packed numeric data with explicit dimensions.
Signature
T is a numeric dtype. Values are row-major and their count must equal the checked product of the dimensions. Invalid shapes return Err(DataError). Host byte and execution limits reject execution before allocation.
Parameters
values: List[T]- Flat elements of the selected dtype; literals inherit T.
Returns
Examples
Constructs packed numeric data with explicit dimensions
Run the example, then change the data and inspect the result.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
3
Rust definition
Rust SDK data primitives; the language checker specializes the same runtime operation.
View Rust documentation →Support: runtime