listMergeNP¶
-
utils.
listMergeNP
(*args)[source]¶ Fast merging of lists of numbers
Parameters: args (list of lists of numbers) – A list of 1D lists of numbers Returns: combinations – An np.array with len(args) columns and a row for each combination Return type: np.array Examples
>>> listMergeNP([1, 2, 3], [5, 6, 7]).T array([[1, 2, 3, 1, 2, 3, 1, 2, 3], [5, 5, 5, 6, 6, 6, 7, 7, 7]])