Trait qmc::sse::qmc_traits::rvb::EdgeNavigator [−][src]
pub trait EdgeNavigator { fn n_bonds(&self) -> usize; fn bonds_for_var(&self, var: usize) -> &[usize]; fn vars_for_bond(&self, bond: usize) -> (usize, usize); fn bond_prefers_aligned(&self, bond: usize) -> bool; fn bond_mag(&self, b: usize) -> f64; fn other_var_for_bond(&self, var: usize, bond: usize) -> Option<usize> { ... } }
Expand description
A struct which allows navigation around the variables in a model.
Required methods
fn n_bonds(&self) -> usize
[src]
Expand description
Number of bonds
fn bonds_for_var(&self, var: usize) -> &[usize]
[src]
Expand description
Get the bonds attached to this variable.
fn vars_for_bond(&self, bond: usize) -> (usize, usize)
[src]
Expand description
Get the variables associated with this bond.
fn bond_prefers_aligned(&self, bond: usize) -> bool
[src]
Expand description
Does the bond prefer aligned variables or antialigned.
fn bond_mag(&self, b: usize) -> f64
[src]
Expand description
Get the magnitude of the largest entry for the bond matrix
Provided methods
fn other_var_for_bond(&self, var: usize, bond: usize) -> Option<usize>
[src]
Expand description
Get the other variable attached by a bond