support multiple args
Closed this issue · 3 comments
dizcza commented
Could you add support for multiple arguments like lambda *args: ...
perfplot.show(
setup=lambda n: numpy.random.random_sample(size=(n, 128)),
kernels=[
lambda x, y: x + y
],
n_range=[2**k for k in range(15)],
xlabel='len(a)'
)
TypeError: () missing 1 required positional argument: 'y'
dizcza commented
Ok, I can broadcast all args to just x
nschloe commented
Indeed, that's what I'm doing as well.
alisheikholeslam commented
Indeed, that's what I'm doing as well.
I have asked a related question on SO.