forcing_slot
Stable type · Other
Tier: stable · Kind: type · Topic: Other
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
ForcingSlot | not exported | not exported | ForcingSlot | not exported |
Julia
struct ForcingSlot
ForcingSlot(name::String, shape::Vector{Int64}, kind::Symbol)
ForcingSlot(name, shape, kind)
ForcingSlot
One buffer of a ForcingSet
(forcing_slots
): the flattened
name, its resolved shape (empty for a 0-d input) and its kind: :forcing
(an externally fed parameter: its update takes its value from a data source or
a handler) or :array_parameter (any other parameter the program reads as a
run-time array: a shaped parameter with a value under
esm_problem(…; runtime_array_parameters = true), or one whose buffer the
caller bound through param_arrays).
TypeScript
TypeScript does not export this type.
Python
Python does not export this type.
Rust
pub struct ForcingSlot {
pub name: String,
pub shape: Vec<usize>,
pub kind: SlotKind,
}
impl ForcingSlot { pub fn len(&self) -> usize }
impl ForcingSlot { pub fn is_empty(&self) -> bool }
One buffer of a ForcingSet
: the variable it serves, its shape, and its
kind. The buffer holds shape’s element count (one for a 0-d slot),
column-major, first index fastest.
Go
Go does not export this type.