[SciPy-user] number of function evaluation for leastsq

Christian K. ckkart at hoc.net
Tue Apr 15 17:12:34 EDT 2008


Pauli Virtanen wrote:
> 
> @memoize_single
> def target_function(z):
>     print "Evaluating..."
>     z = sp.asarray(z)
>     return sum(z**2)

Sorry for this off-topic questions, but can somebody explain me what
that @.... syntax means? I searched the python manuals several times
without luck.

Thanks, Christian




More information about the SciPy-User mailing list