Version: dev

state_block

Stable type · Other

Tier: stable · Kind: type · Topic: Other

JuliaTypeScriptPythonRustGo
StateBlocknot exportednot exportedStateBlocknot exported

Julia

struct StateBlock
StateBlock(name::String, offset::Int64, shape::Vector{Int64})
StateBlock(name, offset, shape)
StateBlock

One block of a program’s u (state_layout ): the flattened state name, the 1-based offset of its first element, and its shape (empty for a 0-d state). Column-major, first index fastest.

Source

TypeScript

TypeScript does not export this type.

Python

Python does not export this type.

Rust

pub struct StateBlock {
    pub name: String,
    pub flat_offset: usize,
    pub shape: Vec<usize>,
}

One state variable’s block of u (API_SPEC §5.8): shape column-major from flat_offset, first index fastest.

Source · Rust docs

Go

Go does not export this type.