Skip to main content

contract_pair

Function contract_pair 

Source
pub fn contract_pair(
    lhs: &TensorDynLen,
    rhs: &TensorDynLen,
) -> Result<TensorDynLen>
Expand description

Contract two tensors with the default pairwise semantics.

This is the concrete TensorDynLen entry point for binary contraction. It contracts all common indices and preserves the pairwise structured fast paths used by [TensorContractionLike::contract_pair].