pub struct UFactor(pub Idx);
Expand description
Specifies the maximum allowed load imbalance among the partitions.
A value of x
indicates that the allowed load imbalance is (1 + x)/1000
.
The load imbalance for the j
th constraint is defined to be
max_i(w[j,i]/t[j,i])
, where w[j,i]
is the fraction of the overall
weight of the j
th constraint that is assigned to thei
th partition and
t[j,i]
is the desired target weight of the j
th constraint for the i
th
partition (i.e., that specified via -tpwgts
). For -ptype=rb
, the default
value is 1 (i.e., load imbalance of 1.001) and for -ptype=kway
, the
default value is 30 (i.e., load imbalance of 1.03).
Tuple Fields§
§0: Idx
Trait Implementations§
source§impl Opt for UFactor
impl Opt for UFactor
source§const INDEX: usize = 17usize
const INDEX: usize = 17usize
Index of the option in the array from
crate::Graph::set_options
and
crate::Mesh::set_options
.source§fn value(self) -> Idx
fn value(self) -> Idx
Convert the value into metis’ format, for use with
crate::Graph::set_options
and crate::Mesh::set_options
.Auto Trait Implementations§
impl Freeze for UFactor
impl RefUnwindSafe for UFactor
impl Send for UFactor
impl Sync for UFactor
impl Unpin for UFactor
impl UnwindSafe for UFactor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more