unique#

ReciprocalLatticeVector.unique(use_symmetry=False, return_index=False)[source]#

The unique vectors.

Parameters:
  • use_symmetry (bool, optional) – Whether to consider equivalent vectors to compute the unique vectors. Default is False.

  • return_index (bool, optional) – Whether to return the indices of the (flattened) data where the unique entries were found. Default is False.

Returns:

  • ReciprocalLatticeVector – Flattened unique vectors.

  • idx (numpy.ndarray) – Indices of the unique data in the (flattened) array.