Struct steiner_tree::lut::LookupTable
source · [−]pub struct LookupTable { /* private fields */ }
Expand description
Lookup-table for nets of low degree.
Implementations
sourceimpl LookupTable
impl LookupTable
sourcepub fn rsmt_low_degree<T>(
&self,
pins: Vec<Point<T>>
) -> (Vec<(Point<T>, Point<T>)>, T) where
T: Ord + Copy + Num + Zero + Sum + Debug,
pub fn rsmt_low_degree<T>(
&self,
pins: Vec<Point<T>>
) -> (Vec<(Point<T>, Point<T>)>, T) where
T: Ord + Copy + Num + Zero + Sum + Debug,
Find a rectilinear steiner minimal tree which connects all pins. Number of de-duplicated pins cannot be larger than the maximum supported number of pins of the lookup table.
Returns: (tree edges, tree weight).
sourcepub fn max_degree(&self) -> usize
pub fn max_degree(&self) -> usize
Get maximum number of pins which is supported by the lookup-table.
sourcepub fn get_sub_lut(&self, num_pins: usize) -> &SubLookupTable
pub fn get_sub_lut(&self, num_pins: usize) -> &SubLookupTable
Get the lookup-table for a net of degree num_pins
.
sourcepub fn print_statistics(&self)
pub fn print_statistics(&self)
Print number of POWVs and POSTs.
sourceimpl LookupTable
impl LookupTable
sourcepub fn rsmt_medium_degree<T>(
&self,
pins: Vec<Point<T>>,
accuracy: usize
) -> (Vec<(Point<T>, Point<T>)>, T) where
T: Ord + Copy + Num + Zero + Sum + Debug + FromPrimitive + ToPrimitive,
pub fn rsmt_medium_degree<T>(
&self,
pins: Vec<Point<T>>,
accuracy: usize
) -> (Vec<(Point<T>, Point<T>)>, T) where
T: Ord + Copy + Num + Zero + Sum + Debug + FromPrimitive + ToPrimitive,
Heuristically break the net into sub-nets until they can be routed using the lookup-table.
Parameters
accuracy
: Try this number of the most promising split locations. Use the best partitioning.
Trait Implementations
sourceimpl Clone for LookupTable
impl Clone for LookupTable
sourcefn clone(&self) -> LookupTable
fn clone(&self) -> LookupTable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for LookupTable
impl Send for LookupTable
impl Sync for LookupTable
impl Unpin for LookupTable
impl UnwindSafe for LookupTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more