unique#
- Miller.unique(use_symmetry: bool = False, return_index: bool = False) Miller | Tuple[Miller, ndarray] [source]#
Unique vectors in
self
.- Parameters:
- use_symmetry
Whether to consider equivalent vectors to compute the unique vectors. Default is
False
.- return_index
Whether to return the indices of the (flattened) data where the unique entries were found. Default is
False
.
- Returns:
m
Flattened unique vectors.
idx
Indices of the unique data in the (flattened) array.
Examples using Miller.unique
#
Restrict to fundamental sector
Restrict to fundamental sector