A
ago
Once I vectorize a function it does not acccept scalars anymore. Es
def f(x): return x*2
vf = vectorize(f)
print vf(2)
AttributeError: 'int' object has no attribute 'astype'
Is this the intended behaviour?
def f(x): return x*2
vf = vectorize(f)
print vf(2)
AttributeError: 'int' object has no attribute 'astype'
Is this the intended behaviour?