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.

Build random regular adjacencies.

Trait Implementations

Formats the value using the given formatter. Read more

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.

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

Get the (bottom neighbour, reverse index) of a top router associated to the given index. 0<=index<amount_to_below(). group_size is the size of each subnetwork. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.