simpeg.utils.unique_rows#
- simpeg.utils.unique_rows(M)[source]#
Return unique rows, row indices and inverse indices.
- Parameters:
- Marray_like
The input array
- Returns:
- unqM
numpy.ndarray
Array consisting of the unique rows of the input array
- unqInd
numpy.ndarray
of
int
Indices to project from input array to output array
- unqInd
numpy.ndarray
of
int
Indices to project from output array to input array
- unqM