Struct ndarray_einsum_beta::contractors::singleton_contractors::DiagonalizationAndSummation[][src]

pub struct DiagonalizationAndSummation {
    diagonalization: Diagonalization,
    summation: Summation,
}

Returns the elements of the input tensor where all instances of the repeated indices are equal to one another, optionally permuting the axes, and sums across indices that don’t appear in the output.

Examples:

  1. iijk->ik (Diagonalizes the i axes and sums over j)
  2. jijik->ki (Diagonalizes i and j and sums over j after diagonalization)

Fields

diagonalization: Diagonalizationsummation: Summation

Implementations

impl DiagonalizationAndSummation[src]

pub fn new(sc: &SizedContraction) -> Self[src]

Trait Implementations

impl Clone for DiagonalizationAndSummation[src]

impl Debug for DiagonalizationAndSummation[src]

impl<A> SingletonContractor<A> for DiagonalizationAndSummation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.