Ńň
pXJc           @   s   d  d k  l Z d  d k Td  d k l Z d  d k l Z l Z l	 Z	 l
 Z
 l Z d e f d     YZ e d j o e   n d S(	   i˙˙˙˙(   t   sqrt(   t   *(   t   zeros(   t   methodst   mstringst	   functionst   fstringst   descriptiont
   BenchZerosc           B   s   e  Z d    Z RS(   c   	      C   sĚ   d } t  d  } d } t GHd GHd | GHx t t t   D] } d t | GHt | } xa t t t   D]M } t | } y t d |  } Wn d t | GHqn Xd	 t | | f GHqn Wd
 GHq> Wd  S(   Ng      ŕ?i   iĐ  s   TESTING SPEED
s$   times in seconds for %d iterations 
s   function %s
s   meth(func,a,b)s   %s : faileds
   %s : %5.3fs   

(	   R    R   t   ranget   lenR   R   R   t   measureR   (	   t   selft   at   bt   repeatt   it   funct   jt   metht   t(    (    sU   C:\graphics\Tools\Python26\Lib\site-packages\scipy\optimize\benchmarks\bench_zeros.pyt	   bench_run   s&    	 
 
(   t   __name__t
   __module__R   (    (    (    sU   C:\graphics\Tools\Python26\Lib\site-packages\scipy\optimize\benchmarks\bench_zeros.pyR      s   t   __main__N(   t   mathR    t   numpy.testingt   scipy.optimizeR   t   cct   scipy.optimize._tstutilsR   R   R   R   R   t   TestCaseR   R   t   run_module_suite(    (    (    sU   C:\graphics\Tools\Python26\Lib\site-packages\scipy\optimize\benchmarks\bench_zeros.pyt   <module>   s   
(