pub fn contract(tensors: &[&TensorDynLen]) -> Result<TensorDynLen>Expand description
Contract a connected tensor network with the default semantics.
This is the normal public entry point for N-ary tensor contraction. It contracts all common contractable indices and requires the input tensors to form one connected tensor graph. Disconnected inputs are rejected so missing links do not silently become outer products.
Use explicit outer_product calls when an outer product of disconnected
components is intentional.