state_block
Stable type · Other
Tier: stable · Kind: type · Topic: Other
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
StateBlock | not exported | not exported | StateBlock | not 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.
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.
Go
Go does not export this type.