atomic_set_indicators#

tangles.separations.atomic_sets.atomic_set_indicators(atoms: list[ndarray]) csr_matrix#

Turn a list of atomic sets into a sparse indicator matrix.

Parameters#

atomslist of np.ndarray

List of atoms.

Returns#

indicator_matrix: sparse.csc_matrix

A sparse matrix of shape (number of rows of sep matrix, number of atoms) indicating what rows are contained in which atom.