pub enum ContractionOrder {
Singleton(SizedContraction),
Pairs(Vec<Pair>),
}Expand description
The order in which to contract pairs of tensors and the specific contractions to be performed between the pairs.
Either a singleton contraction, in the case of a single input operand, or a list of pair contractions, given two or more input operands
Variants§
Singleton(SizedContraction)
If there’s only one input operand, this is simply a clone of the original SizedContraction
Pairs(Vec<Pair>)
If there are two or more input operands, this is a vector of pairwise contractions between input operands and/or intermediate results from prior contractions.
Trait Implementations§
Source§impl Clone for ContractionOrder
impl Clone for ContractionOrder
Source§fn clone(&self) -> ContractionOrder
fn clone(&self) -> ContractionOrder
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 ContractionOrder
impl RefUnwindSafe for ContractionOrder
impl Send for ContractionOrder
impl Sync for ContractionOrder
impl Unpin for ContractionOrder
impl UnwindSafe for ContractionOrder
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