num_vars = len(bounds)
if not isinstance(num_samples, Sequence):
num_samples = [num_samples] * num_vars
// Create linearly spaced test inputs
inputs = [np.linspace(b[0], b[1], n) for b, n in zip(bounds,
num_samples)]
After Change
is of size l x d, that is, every row contains one combination of
inputs.
bounds = np.atleast_2d(bounds)
num_vars = len(bounds)
num_samples = np.broadcast_to(num_samples, num_vars)
// Create linearly spaced test inputs