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.
direct_sum combines two tensors; direct_sum_many combines any
number in one pass.
This module works with concrete types (DynIndex, IdxTensor) only.
Functionsยง
- direct_
sum - Compute the direct sum of two tensors along specified index pairs.
- direct_
sum_ many - Compute the direct sum of any number of tensors in one pass.