Tensor[T] is a packed numeric value with an element type, shape, and strides.
Use List[T] for general values such as records and functions. A nested typed
literal constructs a tensor directly:
let matrix = [[1, 2], [3, 4]]:f32;Every nested row must have the same shape. [[1, 2], [3]]:f32 is a compile
error, before allocation or execution. A tensor literal has one numeric dtype;
mixed element types are also rejected.
Show a QR code for your glasses, or send a link to another browser. You can keep working here.
Sharing starts a fresh run of the last compiled code. Your editor draft stays here.
Join a session
Open an invitation link, or paste a link or code from the other device.
On RayNeo, open Menu → Connect live and scan this code. In another browser, open the invitation link below.
Or enter this code:
Waiting for another device. You can keep working while it connects.
Browsers can edit code; every device can use scene controls. The device that started the session controls playback.
Connection settings
A full invitation link includes its host. With a code alone, both devices need the same live host. Pairing setup
No output.
- Executed source spans appear here.
Read and transform data
matrix.get([1, 0]) returns Opt[T]. matrix.shape() returns the extents. The
operations that can fail return Res[..., DataError]:
let transposed = matrix.transpose()?;
let column = matrix.reshape([4, 1])?;
let total = matrix.sum()?;
let product = matrix.matmul(matrix)?;
let pixels = matrix.convert[u8]()?;reshape checks the element count, transpose checks its axis permutation,
and matmul checks dtype and compatible matrix dimensions. Scalar and tensor
arithmetic use the same checked data errors. The ? requires a compatible
Res or Opt return context; see Enums and results.
Inspect accepted values
Click a tensor name in the code, or select a stored value in Debug, to see its first values, shape, min/max, mean, standard deviation and histogram. Press Alt+Enter to inspect the symbol at the cursor. Statistics identify sampled values and approximate results; exact numeric previews retain their precision. Inspection reads accepted state without running code or changing the scene.
Feed geometry
Mesh.positions is Tensor[f32] with shape [vertices, 3]; Mesh.indices
is Tensor[u32] with shape [triangles, 3].
Show a QR code for your glasses, or send a link to another browser. You can keep working here.
Sharing starts a fresh run of the last compiled code. Your editor draft stays here.
Join a session
Open an invitation link, or paste a link or code from the other device.
On RayNeo, open Menu → Connect live and scan this code. In another browser, open the invitation link below.
Or enter this code:
Waiting for another device. You can keep working while it connects.
Browsers can edit code; every device can use scene controls. The device that started the session controls playback.
Connection settings
A full invitation link includes its host. With a code alone, both devices need the same live host. Pairing setup
No output.
- Executed source spans appear here.
The renderer reads logical coordinates, including strided views, and validates coordinate limits, topology, and triangle area before accepting a scene change. Decoded media remains a host boundary: a tensor describes accepted pixels or samples, while capture, codecs, playback, and streams require a host contract.