(arrays)
return np.array(np.meshgrid(*arrays)).T.reshape(-1, len(arrays))
Return a single array with combinations of parameters.

    Parameters
    ----------
    arrays : list of np.array

    Returns
    -------
    array : np.array
        An array that contains all combinations of the input arrays
Return a single array with combinations of parameters.
Return a single array with combinations of parameters .
def combinations(arrays):
    """Return a single array with combinations of parameters.

    Parameters
    ----------
    arrays : list of np.array

    Returns
    -------
    array : np.array
        An array that contains all combinations of the input arrays
    """
    return np.array(np.meshgrid(*arrays)).T.reshape(-1, len(arrays))
def combinations ( arrays ) : return np . array ( np . meshgrid ( * arrays ) ) . T . reshape ( - 1 , len ( arrays ) )