Class LayeredNetworkStruct

java.lang.Object
jline.lang.layered.LayeredNetworkStruct
All Implemented Interfaces:
Serializable, Copyable

public class LayeredNetworkStruct extends Object implements Copyable
Class summarizing the characteristics of a LayeredNetwork

Index base. Element indices are 0-BASED. A host, task, entry, activity or call has a local index in 0..n-1, and its absolute index is shift + local, so absolute indices run 0..nidx-1 and calls run 0..ncalls-1. The shift values themselves are element COUNTS (hshift=0, tshift=nhosts, eshift=nhosts+ntasks, ...) and are the same numbers they were under the former 1-based numbering; only the local range moved. Matrices carry no padding row or column, and an unset or not-found index is -1, never 0 (0 is the first host). Prefer the hostIdx/taskIdx/entryIdx/actIdx converters and the isHostIdx family below over open-coded shift + local arithmetic.

MATLAB keeps the 1-based numbering; JLINE.from_jline_struct_layered translates. See _kb/04-networkstruct.md.

See Also: