Skip to main content

Module index_ops

Module index_ops 

Source
Expand description

Index operations (replacement, set operations, contraction preparation).

Enums§

ReplaceIndsError
Error type for index replacement operations.

Functions§

check_unique_indices
Check if a collection of indices contains any duplicate full indices.
common_ind_positions
Find contractable indices between two slices and return their positions.
common_inds
Find common indices between two index collections.
hascommoninds
Check if two collections have any common full indices.
hasind
Check if a collection contains a specific full index.
hasinds
Check if a collection contains all of the specified full indices.
noncommon_inds
Find indices that are not common between two collections (symmetric difference).
replaceinds
Replace indices in a collection based on full-index matching.
replaceinds_in_place
Replace indices in-place based on full-index matching.
union_inds
Find the union of two index collections.
unique_inds
Find indices that are unique to the first collection (set difference A \ B).