pub struct NetworkContraction {
pub estimated_cost: f64,
}Expand description
Optimal contraction order finder
Fields§
§estimated_cost: f64Estimated contraction cost
Implementations§
Source§impl NetworkContraction
impl NetworkContraction
Sourcepub fn greedy_order(network: &TensorNetwork) -> Vec<(usize, usize)>
pub fn greedy_order(network: &TensorNetwork) -> Vec<(usize, usize)>
Find greedy contraction order (not optimal but fast)
Trait Implementations§
Source§impl Clone for NetworkContraction
impl Clone for NetworkContraction
Source§fn clone(&self) -> NetworkContraction
fn clone(&self) -> NetworkContraction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkContraction
impl RefUnwindSafe for NetworkContraction
impl Send for NetworkContraction
impl Sync for NetworkContraction
impl Unpin for NetworkContraction
impl UnwindSafe for NetworkContraction
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