reservoirflow.utils.helpers.intersection#
- reservoirflow.utils.helpers.intersection(array_x: ndarray, array_y: ndarray, fmt='array')#
Find common tuples between two arrays.
arrays must be flatten
- Parameters:
array_x (np.ndarray) – array of tuples or arrays of len 3.
array_y (np.ndarray) – array of tuples or arrays of len 3.
fmt (str, optional) – output format as str in [‘array’, ‘list’, ‘tuple’].
- Returns:
common tuples between two arrays.
- Return type:
np.ndarray, list