Struct caminos_lib::pattern::ProductPattern [−][src]
pub struct ProductPattern { /* fields omitted */ }
Expand description
A pattern given by blocks. The elements are divided by blocks of size block_size
. The global_pattern
is used to describe the communication among different blocks and the block_pattern
to describe the communication inside a block.
Seen as a graph, this is the Kronecker product of the block graph with the global graph.
Thus the origin a position i
in the block j
will select the destination at position b(i)
in the block g(j)
, where b(i)
is the destination via the block_pattern
and g(j)
is the destination via the global_pattern
.
Trait Implementations
Fix the input and output size, providing the topology and random number generator. Careful with using toology in sub-patterns. For example, it may be misleading to use the dragonfly topology when building a pattern among groups or a pattern among the ruters of a single group. Even just a pattern of routers instead of a pattern of servers can lead to mistakes. Read the documentation of the traffic or meta-pattern using the pattern to know what its their input and output. 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.