pub struct PermutationAndSummation {
permutation: Permutation,
summation: Summation,
}Expand description
Permutes the elements of the input tensor and sums across elements that don’t appear in the output.
Example: ijk->kj
Fields§
§permutation: Permutation§summation: SummationImplementations§
Source§impl PermutationAndSummation
impl PermutationAndSummation
pub fn new(sc: &SizedContraction) -> Self
Trait Implementations§
Source§impl Clone for PermutationAndSummation
impl Clone for PermutationAndSummation
Source§fn clone(&self) -> PermutationAndSummation
fn clone(&self) -> PermutationAndSummation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermutationAndSummation
impl Debug for PermutationAndSummation
Source§impl<A> SingletonContractor<A> for PermutationAndSummation
impl<A> SingletonContractor<A> for PermutationAndSummation
fn contract_singleton<'a, 'b>(&self, tensor: &'b ArrayViewD<'a, A>) -> ArrayD<A>where
A: Clone + LinalgScalar,
'a: 'b,
Auto Trait Implementations§
impl Freeze for PermutationAndSummation
impl RefUnwindSafe for PermutationAndSummation
impl Send for PermutationAndSummation
impl Sync for PermutationAndSummation
impl Unpin for PermutationAndSummation
impl UnsafeUnpin for PermutationAndSummation
impl UnwindSafe for PermutationAndSummation
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