Tools for locating elements inside arrays/lists

Tools for locating data or subarrays inside other arrays.

find_duplicates(v[, tol])

Find duplicate values in a vector (or within a tolerance).

find_rows(matrix, row)

Get True/False vector indicating where row occurs in matrix

find_subseq(seq, subseq)

Returns indices of where subseq occurs in seq.

find_unique(y[, tol])

Find values in a vector that differ from previous adjacent value.

find_vals(m, v)

Find all occurrences of all values in v in m

flippv(pv, n)

Flips the meaning of an index partition vector.

mat_intersect(D1, D2[, keep])

Get row intersection partition vectors between two matrices or vectors.

index2bool(pv, n)

Return a True/False vector of length n where the True values are located according to pv.

index2slice(pv[, strict])

Convert index partition vector pv to a slice object

list_intersect(L1, L2)

Get list intersection partition vectors between two lists