[−][src]Struct caminos_lib::pattern::ProductPattern
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
impl Debug for ProductPattern
[src]
impl Pattern for ProductPattern
[src]
pub fn initialize(
&mut self,
source_size: usize,
target_size: usize,
topology: &Box<dyn Topology>,
rng: &RefCell<StdRng>
)
[src]
&mut self,
source_size: usize,
target_size: usize,
topology: &Box<dyn Topology>,
rng: &RefCell<StdRng>
)
pub fn get_destination(
&self,
origin: usize,
topology: &Box<dyn Topology>,
rng: &RefCell<StdRng>
) -> usize
[src]
&self,
origin: usize,
topology: &Box<dyn Topology>,
rng: &RefCell<StdRng>
) -> usize
impl Quantifiable for ProductPattern
[src]
pub fn total_memory(&self) -> usize
[src]
pub fn print_memory_breakdown(&self)
[src]
pub fn forecast_total_memory(&self) -> usize
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ProductPattern
impl !Send for ProductPattern
impl !Sync for ProductPattern
impl Unpin for ProductPattern
impl !UnwindSafe for ProductPattern
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,