Struct caminos_lib::topology::multistage::ExplicitStage [−][src]
pub struct ExplicitStage { /* fields omitted */ }
Expand description
A Stage with a explicitly given list of neighbours for each router. Ignores grouping. Apt to build random stages.
Implementations
Convert a pair of list of adjacencies into a pair of lists including the index to return.
This is, return (f,g) with g[f[x][i].0][f[x][i].1]=x
and f[g[x][i].0][g[x][i].1]=x
for any x
in range.
Trait Implementations
Get the total memory currently being employed by the implementing type. Both stack and heap.
Prints by stdout how much memory is used per component.
Get an estimation on how much memory the type could reach during the simulation.
fn compose_requirements_upward(
&self,
requirements: LevelRequirements,
_bottom_level: usize,
_height: usize
) -> LevelRequirements
fn compose_requirements_upward(
&self,
requirements: LevelRequirements,
_bottom_level: usize,
_height: usize
) -> LevelRequirements
Compose the requirements of lower stages with this one.
bottom_level
is the level corresponding to the bottom of this Stage.
height
is the total number of stages in the network. Read more
Compute the size of the bottom level given the top one. Return error if there is not a legal one. Read more
Number of top routers that are neighbour to a given bottom.
Number of bottom routers that are neighbour to a given top.
Get the (top neighbour, reverse index) of a bottom router associated to the given index
. 0<=index<amount_to_above()
.
group_size
is the size of each subnetwork. Read more