Hi,

as a newby to python but otherwise not totally unexperienced programmer, I would like to bring up the question once more how I can best determine if a function argument is a) scalar or vector, and b) a "simple" python float or a numpy float type.

The previous post on this topic had a simple function "twice (x)" which can easily be vectorized through list comprehension, for example. In my...