Skip to main content

ContractSecondWithFirst

Trait ContractSecondWithFirst 

Source
pub trait ContractSecondWithFirst<TJN> {
    type Output;

    // Required method
    fn contract_second_with_first(self, tensor_rank_2: TJN) -> Self::Output;
}
Expand description

Transforms the second index of a rank-4 tensor.

Contracts it with the first index of a rank-2 tensor.

Required Associated Types§

Required Methods§

Source

fn contract_second_with_first(self, tensor_rank_2: TJN) -> Self::Output

Implementors§

Source§

impl<const D: usize, const I: usize, const J: usize, const K: usize, const L: usize, const N: usize> ContractSecondWithFirst<&TensorRank2<D, J, N>> for TensorRank4<D, I, J, K, L>

Source§

type Output = TensorRank4<D, I, N, K, L>