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

pub struct Diagonalization {
    input_to_output_mapping: Vec<usize>,
    output_shape: Vec<usize>,
}

Returns the elements of the input tensor where all instances of the repeated indices are equal to one another. Optionally permutes the axes of the tensor as well.

Examples:

  1. ii->i
  2. iij->ji

Fields

input_to_output_mapping: Vec<usize>output_shape: Vec<usize>

Implementations

impl Diagonalization[src]

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

Trait Implementations

impl Clone for Diagonalization[src]

impl Debug for Diagonalization[src]

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

impl<A> SingletonViewer<A> for Diagonalization[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.