struct SimplificationMethodAndOutput<A> {
method: SingletonMethod,
op: Box<dyn SingletonContractor<A>>,
new_indices: Vec<char>,
einsum_string: String,
}Expand description
Holds an Box<dyn SingletonContractor<A>> and the resulting simplified indices.
Fields§
§method: SingletonMethod§op: Box<dyn SingletonContractor<A>>§new_indices: Vec<char>§einsum_string: StringImplementations§
Source§impl<A> SimplificationMethodAndOutput<A>
impl<A> SimplificationMethodAndOutput<A>
Sourcefn from_indices_and_sizes(
this_input_indices: &[char],
other_input_indices: &[char],
output_indices: &[char],
orig_contraction: &SizedContraction,
) -> Option<Self>
fn from_indices_and_sizes( this_input_indices: &[char], other_input_indices: &[char], output_indices: &[char], orig_contraction: &SizedContraction, ) -> Option<Self>
Based on the number of diagonalized, permuted, and summed axes, chooses a struct implementing
SingletonContractor to simplify the tensor (or None if the tensor doesn’t need simplification)
and computes the indices of the simplified tensor.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for SimplificationMethodAndOutput<A>
impl<A> !RefUnwindSafe for SimplificationMethodAndOutput<A>
impl<A> !Send for SimplificationMethodAndOutput<A>
impl<A> !Sync for SimplificationMethodAndOutput<A>
impl<A> Unpin for SimplificationMethodAndOutput<A>
impl<A> !UnwindSafe for SimplificationMethodAndOutput<A>
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