ó
\K]c           @` sì  d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l m Z m	 Z	 d  d l
 m Z m Z m Z m Z d  d l Z d „  Z d „  Z d „  Z d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" d „  Z# d „  Z$ d „  Z% d „  Z& d „  Z' d „  Z( d „  Z) d „  Z* d  „  Z+ d! „  Z, d" „  Z- d# „  Z. d$ „  Z/ d% „  Z0 d& „  Z1 d' „  Z2 d( e	 e j3 f d) „  ƒ  YZ4 e5 d* k rèe j6 ƒ  n  d S(+   i    (   t   print_functiont   absolute_importt   divisionN(   t   unittestt   SerialMixin(   t   cudat   float32t   float64t   int32c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   t   gridt   matht   acos(   t   At   Bt   i(    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_acos	   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   asin(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_asin   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   atan(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_atan   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   acosh(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_acosh   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   asinh(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_asinh   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   atanh(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_atanh"   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   cos(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_cos'   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   sin(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_sin,   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   tan(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_tan1   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   cosh(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_cosh6   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   sinh(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_sinh;   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   tanh(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_tanh@   s    c         C` s1   t  j d ƒ } t j |  | | | ƒ | | <d  S(   Ni   (   R   R	   R
   t   atan2(   R   R   t   CR   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_atan2E   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   exp(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_expJ   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   erf(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_erfN   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   erfc(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_erfcR   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   expm1(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_expm1V   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   fabs(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_fabsZ   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   gamma(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_gamma^   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   lgamma(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_lgammab   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   log(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_logf   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   log10(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_log10k   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   log1p(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_log1pp   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   sqrt(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_sqrtu   s    c         C` s1   t  j d ƒ } t j |  | | | ƒ | | <d  S(   Ni   (   R   R	   R
   t   hypot(   R   R   R'   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_hypotz   s    c         C` s1   t  j d ƒ } t j |  | | | ƒ | | <d  S(   Ni   (   R   R	   R
   t   pow(   R   R   R'   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_pow   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   ceil(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_ceil„   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   floor(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_floor‰   s    c         C` s1   t  j d ƒ } t j |  | | | ƒ | | <d  S(   Ni   (   R   R	   R
   t   copysign(   R   R   R'   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_copysignŽ   s    c         C` s1   t  j d ƒ } t j |  | | | ƒ | | <d  S(   Ni   (   R   R	   R
   t   fmod(   R   R   R'   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_fmod“   s    c         C` s1   t  j d ƒ } t j |  | | | ƒ | | <d  S(   Ni   (   R   R	   R
   t   modf(   R   R   R'   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt	   math_modf˜   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   isnan(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_isnan   s    c         C` s*   t  j d ƒ } t j |  | ƒ | | <d  S(   Ni   (   R   R	   R
   t   isinf(   R   R   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt
   math_isinf¢   s    c         C` s)   t  j d ƒ } |  | | | | | <d  S(   Ni   (   R   R	   (   R   R   R'   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_pow_binop§   s    c         C` s)   t  j d ƒ } |  | | | | | <d  S(   Ni   (   R   R	   (   R   R   R'   R   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   math_mod_binop¬   s    t   TestCudaMathc           B` s¸  e  Z d  d d „ Z d  d d „ Z d „  Z d  d d „ Z d  d d „ Z d „  Z d  d d „ Z d  d d	 „ Z	 d
 „  Z
 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d  „  Z  d! „  Z! d" „  Z" d# „  Z# d$ „  Z$ d% „  Z% d& „  Z& d' „  Z' d( „  Z( d) „  Z) d* „  Z* d+ „  Z+ d, „  Z, d- „  Z- RS(.   i    i   c         C` s#   |  j  | | t j t | | ƒ d  S(   N(   t   unary_templatet   npR   (   t   selft   funct   npfunct   startt   stop(    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   unary_template_float32²   s    c         C` s#   |  j  | | t j t | | ƒ d  S(   N(   RT   RU   R   (   RV   RW   RX   RY   RZ   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   unary_template_float64¶   s    c         C` s›   d } t  j | | | ƒ j | ƒ } t  j | ƒ }	 | d  d  d … }
 t j |
 |
 f ƒ | ƒ } | d | f | |	 ƒ |  j t  j | | ƒ |	 ƒ ƒ d  S(   Ni2   i   (   RU   t   linspacet   astypet
   empty_likeR   t   jitt
   assertTruet   allclose(   RV   RW   RX   t   npdtypet   npmtypeRY   RZ   t   nelemR   R   t   arytypet   cfunc(    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyRT   º   s    c         C` s#   |  j  | | t j t | | ƒ d  S(   N(   RT   RU   R   (   RV   RW   RX   RY   RZ   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   unary_bool_template_float32Ã   s    c         C` s#   |  j  | | t j t | | ƒ d  S(   N(   RT   RU   R   (   RV   RW   RX   RY   RZ   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   unary_bool_template_float64Ç   s    c         C` sº   d } t  j | | | ƒ j | ƒ } t  j | j d t  j ƒ}	 | d  d  d … }
 t d  d  d … } t j |
 | f ƒ | ƒ } | d | f | |	 ƒ |  j t  j	 | | ƒ |	 ƒ ƒ d  S(   Ni2   t   dtypei   (
   RU   R]   R^   t   emptyt   shapeR   R   R`   Ra   t   all(   RV   RW   RX   Rc   Rd   RY   RZ   Re   R   R   t   iarytypet   oarytypeRg   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   unary_bool_templateÊ   s    c         C` s#   |  j  | | t j t | | ƒ d  S(   N(   t   binary_templateRU   R   (   RV   RW   RX   RY   RZ   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   binary_template_float32Õ   s    c         C` s#   |  j  | | t j t | | ƒ d  S(   N(   Rq   RU   R   (   RV   RW   RX   RY   RZ   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   binary_template_float64Ù   s    c         C` s®   d } t  j | | | ƒ j | ƒ } t  j | ƒ }	 | d  d  d … }
 t j |
 |
 |
 f ƒ | ƒ } | j ƒ  | d | f | | |	 ƒ |  j t  j | | | ƒ |	 ƒ ƒ d  S(   Ni2   i   (	   RU   R]   R^   R_   R   R`   t   bindRa   Rb   (   RV   RW   RX   Rc   Rd   RY   RZ   Re   R   R   Rf   Rg   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyRq   Ý   s    
c         C` sD   t  j | ƒ } x. t t | ƒ ƒ D] } | | | ƒ | | <q" W| S(   N(   RU   t
   zeros_liket   ranget   len(   RV   t   mathfunct   xt   rett   k(    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   _math_vectorizeé   s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R   RU   t   arccosR\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_acosò   s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R   RU   t   arcsinR\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_asinú   s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R   RU   t   arctanR\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_atan  s    c         C` sB   |  j  t t j d d d d ƒ|  j t t j d d d d ƒd  S(   NRY   i   RZ   i   (   R[   R   RU   t   arccoshR\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_acosh
  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R   RU   t   arcsinhR\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_asinh  s    c         C` sB   |  j  t t j d d d d ƒ|  j t t j d d d d ƒd  S(   NRY   i    RZ   gÍÌÌÌÌÌì?(   R[   R   RU   t   arctanhR\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_atanh  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R   RU   R   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_cos#  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R   RU   R   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_sin+  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R   RU   R   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_tan3  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R!   RU   R    R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_cosh;  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R#   RU   R"   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_sinhC  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R%   RU   R$   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_tanhK  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   Rr   R(   RU   t   arctan2Rs   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_atan2S  s    c         ` s3   ‡  f d †  } ˆ  j  t | ƒ ˆ  j t | ƒ d  S(   Nc         ` s   ˆ  j  t j |  ƒ S(   N(   R|   R
   R+   (   Ry   (   RV   (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   ufunc\  s    (   R[   R,   R\   (   RV   R‘   (    (   RV   s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_erf[  s    c         ` s3   ‡  f d †  } ˆ  j  t | ƒ ˆ  j t | ƒ d  S(   Nc         ` s   ˆ  j  t j |  ƒ S(   N(   R|   R
   R-   (   Ry   (   RV   (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyR‘   f  s    (   R[   R.   R\   (   RV   R‘   (    (   RV   s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_erfce  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R*   RU   R)   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_expo  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R0   RU   R/   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_expm1v  s    c         C` s6   |  j  t t j d d ƒ|  j t t j d d ƒd  S(   NRY   iÿÿÿÿ(   R[   R2   RU   R1   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_fabs~  s    c         ` s?   ‡  f d †  } ˆ  j  t | d d ƒˆ  j t | d d ƒd  S(   Nc         ` s   ˆ  j  t j |  ƒ S(   N(   R|   R
   R3   (   Ry   (   RV   (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyR‘   ‡  s    RY   gš™™™™™¹?(   R[   R4   R\   (   RV   R‘   (    (   RV   s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_gamma†  s    c         ` s?   ‡  f d †  } ˆ  j  t | d d ƒˆ  j t | d d ƒd  S(   Nc         ` s   ˆ  j  t j |  ƒ S(   N(   R|   R
   R5   (   Ry   (   RV   (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyR‘   ‘  s    RY   gš™™™™™¹?(   R[   R6   R\   (   RV   R‘   (    (   RV   s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_lgamma  s    c         C` s6   |  j  t t j d d ƒ|  j t t j d d ƒd  S(   NRY   i   (   R[   R8   RU   R7   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_logš  s    c         C` s6   |  j  t t j d d ƒ|  j t t j d d ƒd  S(   NRY   i   (   R[   R:   RU   R9   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_log10¢  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R<   RU   R;   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_log1pª  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   R>   RU   R=   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_sqrt²  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   Rr   R@   RU   R?   Rs   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_hypotº  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   Rr   RB   RU   t   powerRs   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_powÃ  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   Rr   RQ   RU   Rž   Rs   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_pow_binopÌ  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   RD   RU   RC   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_ceilÔ  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   R[   RF   RU   RE   R\   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_floorÜ  s    c         C` s6   |  j  t t j d d ƒ|  j t t j d d ƒd  S(   NRY   iÿÿÿÿ(   Rr   RH   RU   RG   Rs   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_copysignä  s    c         C` s6   |  j  t t j d d ƒ|  j t t j d d ƒd  S(   NRY   i   (   Rr   RJ   RU   RI   Rs   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_fmodì  s    c         C` s6   |  j  t t j d d ƒ|  j t t j d d ƒd  S(   NRY   i   (   Rr   RR   RU   RI   Rs   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_mod_binopô  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   Rh   RN   RU   RM   Ri   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_isnanü  s    c         C` s*   |  j  t t j ƒ |  j t t j ƒ d  S(   N(   Rh   RP   RU   RO   Ri   (   RV   (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   test_math_isinf  s    (.   t   __name__t
   __module__R[   R\   RT   Rh   Ri   Rp   Rr   Rs   Rq   R|   R~   R€   R‚   R„   R†   Rˆ   R‰   RŠ   R‹   RŒ   R   RŽ   R   R’   R“   R”   R•   R–   R—   R˜   R™   Rš   R›   Rœ   R   RŸ   R    R¡   R¢   R£   R¤   R¥   R¦   R§   (    (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyRS   ±   sX   																					
	
				
	
															t   __main__(7   t
   __future__R    R   R   t   syst   numpyRU   t   numba.cuda.testingR   R   t   numbaR   R   R   R   R
   R   R   R   R   R   R   R   R   R   R!   R#   R%   R(   R*   R,   R.   R0   R2   R4   R6   R8   R:   R<   R>   R@   RB   RD   RF   RH   RJ   RL   RN   RP   RQ   RR   t   TestCaseRS   R¨   t   main(    (    (    s@   lib/python2.7/site-packages/numba/cuda/tests/cudapy/test_math.pyt   <module>   sX   "																																			ÿ Y