Module direct_sum

Module direct_sum 

Source
Expand description

Direct sum operations for tensors.

This module provides functionality to compute the direct sum of tensors along specified index pairs. The direct sum concatenates tensor data along the paired indices, creating new indices with combined dimensions.

This module works with concrete types (DynIndex, TensorDynLen) only.

Functionsยง

direct_sum
Compute the direct sum of two tensors along specified index pairs.