pub trait ContractSecondFourthWithFirst<TJ, TL> {
type Output;
// Required method
fn contract_second_fourth_with_first(
&self,
object_a: TJ,
object_b: TL,
) -> Self::Output;
}Expand description
Contracts the second and fourth indices of a rank-4 tensor with two vectors.
Yields the rank-2 tensor over the remaining first and third indices.