Skip to main content

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. 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.