Struct ndarray_einsum_beta::contractors::pair_contractors::HadamardProductGeneral[][src]

pub struct HadamardProductGeneral {
    lhs_permutation: Permutation,
    rhs_permutation: Permutation,
    hadamard_product: HadamardProduct,
}

Permutes the axes of the LHS and RHS tensors to the order in which those axes appear in the output before computing the Hadamard (element-wise) product.

Examples of contractions that fit this category:

  1. ij,ij->ij (Can also can use HadamardProduct)
  2. ij,ji->ij (Can only use HadamardProductGeneral)

Fields

lhs_permutation: Permutationrhs_permutation: Permutationhadamard_product: HadamardProduct

Implementations

impl HadamardProductGeneral[src]

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

Trait Implementations

impl Clone for HadamardProductGeneral[src]

impl Debug for HadamardProductGeneral[src]

impl<A> PairContractor<A> for HadamardProductGeneral[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.