combinations_1d

combinations_1d(x: ndarray, y: ndarray) ndarray[source]

Return the unique pairs of the 2D array made by concatenating x and y.

Parameters:
xarray, shape=(u)

A 1D array of values

yarray, shape=(v)

A 1D array of values

Returns:
array, shape=(w, 2)

The unique pairs in the concatenation of x and y.