
\K]c           @@ s   d  d l  m Z m Z d  d l Z d  d l m Z d  d l m Z m Z d e e j	 f d     YZ
 e d k r} e j   n  d S(   i    (   t   print_functiont   absolute_importN(   t   cuda(   t   unittestt   SerialMixint   TestCudaMonteCarloc           B@ s   e  Z d    Z RS(   c         C@ s   t  j d  d    } d S(   s+   Just make sure we can compile this
        s=   void(double[:], double[:], double, double, double, double[:])c         S@ s[   t  j d  } | | j d k r& d  S| | } |  | t j | | | |  | | <d  S(   Ni   i    (   R   t   gridt   shapet   matht   exp(   t   lastt   pathst   dtt   c0t   c1t   normdistt   it   noise(    (    sF   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_montecarlo.pyt   step   s
    
N(   R   t   jit(   t   selfR   (    (    sF   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_montecarlo.pyt   test_montecarlo   s    (   t   __name__t
   __module__R   (    (    (    sF   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_montecarlo.pyR      s   t   __main__(   t
   __future__R    R   R   t   numbaR   t   numba.cuda.testingR   R   t   TestCaseR   R   t   main(    (    (    sF   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_montecarlo.pyt   <module>   s   