unique#

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

The unique vectors.

Parameters:
use_symmetrybool, optional

Whether to consider equivalent vectors to compute the unique vectors. Default is False.

return_indexbool, optional

Whether to return the indices of the (flattened) data where the unique entries were found. Default is False.

Returns:
ReciprocalLatticeVector

Flattened unique vectors.

idxnumpy.ndarray

Indices of the unique data in the (flattened) array.