pysdic.Connectivity.remove_elements_by_index#

Connectivity.remove_elements_by_index(indices, *, propagate_properties=True)[source]#

Remove the elements with the given indices.

Parameters:
  • indices (ArrayLike) – An integer array of shape \((R,)\) with the indices of the elements to remove, in \([0, N_e)\). Duplicates are allowed.

  • propagate_properties (bool, optional (default: True)) – If False, the new connectivity has no properties.

Returns:

The connectivity without the given elements.

Return type:

pysdic.Connectivity

Raises:
  • TypeError – If the indices are not integers.

  • IndexError – If an index is out of \([0, N_e)\).