
    shW                        S r SSKrSSKJr  SSKrSSKrSSKJrJ	r	   " S S\
5      rS r " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S  S!\5      r " S" S#\5      r " S$ S%\5      r " S& S'\5      r " S( S)\5      r " S* S+\5      r " S, S-\5      r " S. S/\5      r  " S0 S1\5      r! " S2 S3\5      r" " S4 S5\5      r# " S6 S7\5      r$ " S8 S9\5      r% " S: S;\5      r& " S< S=\5      r' " S> S?\5      r( " S@ SA\5      r) " SB SC\5      r*SD r+SE r,\+" 5       r-\," \-5        g)Fz1
This scripts specifies all PTX special objects.
    N)defaultdict)	Signature	Parameterc                   ,    \ rS rSrSrSrSrS rS rSr	g)Stub   zf
A stub object to represent special objects that are meaningless
outside the context of a CUDA kernel
z<ptx special value> c                     [        SU -  5      e)Nz%s is not instantiableNotImplementedError)clss    d/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/numba/cuda/stubs.py__new__Stub.__new__   s    !":S"@AA    c                     U R                   $ N)_description_selfs    r   __repr__Stub.__repr__   s    !!!r   N)
__name__
__module____qualname____firstlineno____doc__r   	__slots__r   r   __static_attributes__r	   r   r   r   r      s     *MIB"r   r   c                 F   ^  [         R                  " T 5      U 4S j5       nU$ )zj
A stub function to represent special functions that are meaningless
outside the context of a CUDA kernel
c                      > [        ST-  5      e)Nz"%s cannot be called from host coder   )argskwargsfns     r   wrappedstub_function.<locals>.wrapped   s    !"F"KLLr   )	functoolswraps)r$   r%   s   ` r   stub_functionr)      s'    
 __RM MNr   c                   L    \ rS rSrSrSr\S 5       r\S 5       r\S 5       r	Sr
g)	Dim3)   zA triple, (x, y, z)z<Dim3>c                     g r   r	   r   s    r   xDim3.x-       r   c                     g r   r	   r   s    r   yDim3.y1   r0   r   c                     g r   r	   r   s    r   zDim3.z5   r0   r   r	   N)r   r   r   r   r   r   propertyr.   r2   r5   r   r	   r   r   r+   r+   )   sD    M     r   r+   c                       \ rS rSrSrSrSrg)	threadIdx:   z
The thread indices in the current thread block. Each index is an integer
spanning the range from 0 inclusive to the corresponding value of the
attribute in :attr:`numba.cuda.blockDim` exclusive.
z<threadIdx.{x,y,z}>r	   Nr   r   r   r   r   r   r   r	   r   r   r9   r9   :   s    
 *Mr   r9   c                       \ rS rSrSrSrSrg)blockIdxC   z
The block indices in the grid of thread blocks. Each index is an integer
spanning the range from 0 inclusive to the corresponding value of the
attribute in :attr:`numba.cuda.gridDim` exclusive.
z<blockIdx.{x,y,z}>r	   Nr;   r	   r   r   r=   r=   C       
 )Mr   r=   c                       \ rS rSrSrSrSrg)blockDimL   z
The shape of a block of threads, as declared when instantiating the kernel.
This value is the same for all threads in a given kernel launch, even if
they belong to different blocks (i.e. each block is "full").
z<blockDim.{x,y,z}>r	   Nr;   r	   r   r   rA   rA   L   r?   r   rA   c                       \ rS rSrSrSrSrg)gridDimU   zc
The shape of the grid of blocks. This value is the same for all threads in
a given kernel launch.
z<gridDim.{x,y,z}>r	   Nr;   r	   r   r   rD   rD   U   s     (Mr   rD   c                       \ rS rSrSrSrSrg)warpsize]   zS
The size of a warp. All architectures implemented to date have a warp size
of 32.
z
<warpsize>r	   Nr;   r	   r   r   rG   rG   ]   s     !Mr   rG   c                       \ rS rSrSrSrSrg)laneide   zU
This thread's lane within a warp. Ranges from 0 to
:attr:`numba.cuda.warpsize` - 1.
z<laneid>r	   Nr;   r	   r   r   rJ   rJ   e   s     Mr   rJ   c                   ,    \ rS rSrSrSr\S 5       rSrg)sharedp   z
Shared memory namespace
z<shared>c                     g)ad  
Allocate a shared array of the given *shape* and *type*. *shape* is
either an integer or a tuple of integers representing the array's
dimensions.  *type* is a :ref:`Numba type <numba-types>` of the
elements needing to be stored in the array.

The returned array-like object can be read and written to like any
normal device array (e.g. through indexing).
Nr	   shapedtypes     r   arrayshared.arrayv       r   r	   N	r   r   r   r   r   r   r)   rS   r   r	   r   r   rM   rM   p   s      M	 	r   rM   c                   ,    \ rS rSrSrSr\S 5       rSrg)local   z
Local memory namespace
z<local>c                     g)z
Allocate a local array of the given *shape* and *type*. The array is
private to the current thread, and resides in global memory. An
array-like object is returned which can be read and written to like any
standard array (e.g.  through indexing).
Nr	   rP   s     r   rS   local.array   rU   r   r	   NrV   r	   r   r   rX   rX      s      M r   rX   c                   (    \ rS rSrSr\S 5       rSrg)const   z
Constant memory namespace
c                     g)zx
Create a const array from *ndarry*. The resulting const array will have
the same shape, type, and values as *ndarray*.
Nr	   )ndarrays    r   
array_likeconst.array_like   rU   r   r	   N)r   r   r   r   r   r)   ra   r   r	   r   r   r]   r]      s      r   r]   c                       \ rS rSrSrSrSrg)syncwarp   zO
syncwarp(mask=0xFFFFFFFF)

Synchronizes a masked subset of threads in a warp.
z<warp_sync()>r	   Nr;   r	   r   r   rd   rd      s    
 $Mr   rd   c                       \ rS rSrSrSrSrg)shfl_sync_intrinsic   z
shfl_sync_intrinsic(mask, mode, value, mode_offset, clamp)

Nvvm intrinsic for shuffling data across a warp
docs.nvidia.com/cuda/nvvm-ir-spec/index.html#nvvm-intrin-warp-level-datamove
z<shfl_sync()>r	   Nr;   r	   r   r   rg   rg           $Mr   rg   c                       \ rS rSrSrSrSrg)vote_sync_intrinsic   z
vote_sync_intrinsic(mask, mode, predictate)

Nvvm intrinsic for performing a reduce and broadcast across a warp
docs.nvidia.com/cuda/nvvm-ir-spec/index.html#nvvm-intrin-warp-level-vote
z<vote_sync()>r	   Nr;   r	   r   r   rk   rk      ri   r   rk   c                       \ rS rSrSrSrSrg)match_any_sync   z
match_any_sync(mask, value)

Nvvm intrinsic for performing a compare and broadcast across a warp.
Returns a mask of threads that have same value as the given value from
within the masked warp.
z<match_any_sync()>r	   Nr;   r	   r   r   rn   rn      s     )Mr   rn   c                       \ rS rSrSrSrSrg)match_all_sync   ar  
match_all_sync(mask, value)

Nvvm intrinsic for performing a compare and broadcast across a warp.
Returns a tuple of (mask, pred), where mask is a mask of threads that have
same value as the given value from within the masked warp, if they
all have the same value, otherwise it is 0. Pred is a boolean of whether
or not all threads in the mask warp have the same warp.
z<match_all_sync()>r	   Nr;   r	   r   r   rq   rq      s     )Mr   rq   c                       \ rS rSrSrSrSrg)
activemask   a=  
activemask()

Returns a 32-bit integer mask of all currently active threads in the
calling warp. The Nth bit is set if the Nth lane in the warp is active when
activemask() is called. Inactive threads are represented by 0 bits in the
returned mask. Threads which have exited the kernel are always marked as
inactive.
z<activemask()>r	   Nr;   r	   r   r   rt   rt      s     %Mr   rt   c                       \ rS rSrSrSrSrg)lanemask_lt   zy
lanemask_lt()

Returns a 32-bit integer mask of all lanes (including inactive ones) with
ID less than the current lane.
z<lanemask_lt()>r	   Nr;   r	   r   r   rw   rw      s     &Mr   rw   c                       \ rS rSrSrSrSrg)threadfence_block   z&
A memory fence at thread block level
z<threadfence_block()>r	   Nr;   r	   r   r   rz   rz      s     ,Mr   rz   c                       \ rS rSrSrSrSrg)threadfence_system   z0
A memory fence at system level: across devices
z<threadfence_system()>r	   Nr;   r	   r   r   r}   r}      s     -Mr   r}   c                       \ rS rSrSrSrSrg)threadfence   z 
A memory fence at device level
z<threadfence()>r	   Nr;   r	   r   r   r   r      s     &Mr   r   c                       \ rS rSrSrSrg)popci
  z/
popc(x)

Returns the number of set bits in x.
r	   Nr   r   r   r   r   r   r	   r   r   r   r   
      r   r   c                       \ rS rSrSrSrg)brevi  zc
brev(x)

Returns the reverse of the bit pattern of x. For example, 0b10110110
becomes 0b01101101.
r	   Nr   r	   r   r   r   r         r   r   c                       \ rS rSrSrSrg)clzi  z3
clz(x)

Returns the number of leading zeros in z.
r	   Nr   r	   r   r   r   r     r   r   r   c                       \ rS rSrSrSrg)ffsi#  z
ffs(x)

Returns the position of the first (least significant) bit set to 1 in x,
where the least significant bit position is 1. ffs(0) returns 0.
r	   Nr   r	   r   r   r   r   #  r   r   r   c                       \ rS rSrSrSrg)selpi/  zd
selp(a, b, c)

Select between source operands, based on the value of the predicate source
operand.
r	   Nr   r	   r   r   r   r   /  r   r   r   c                       \ rS rSrSrSrg)fmai;  z9
fma(a, b, c)

Perform the fused multiply-add operation.
r	   Nr   r	   r   r   r   r   ;  r   r   r   c                       \ rS rSrSrSrg)cbrtiC  z,"
cbrt(a)

Perform the cube root operation.
r	   Nr   r	   r   r   r   r   C  r   r   r   c                   P   \ rS rSrSrSr " S S\5      r " S S\5      r " S S	\5      r	 " S
 S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rS rg!)"atomiciN  z$Namespace for atomic operations
    z<atomic>c                       \ rS rSrSrSrg)
atomic.addiS  zadd(ary, idx, val)

Perform atomic ``ary[idx] += val``. Supported on int32, float32, and
float64 operands only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   addr   S      	r   r   c                       \ rS rSrSrSrg)
atomic.subi]  zsub(ary, idx, val)

Perform atomic ``ary[idx] -= val``. Supported on int32, float32, and
float64 operands only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   subr   ]  r   r   r   c                       \ rS rSrSrSrg)atomic.and_ig  zand_(ary, idx, val)

Perform atomic ``ary[idx] &= val``. Supported on int32, int64, uint32
and uint64 operands only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   and_r   g  r   r   r   c                       \ rS rSrSrSrg)
atomic.or_iq  zor_(ary, idx, val)

Perform atomic ``ary[idx] |= val``. Supported on int32, int64, uint32
and uint64 operands only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   or_r   q  r   r   r   c                       \ rS rSrSrSrg)
atomic.xori{  zxor(ary, idx, val)

Perform atomic ``ary[idx] ^= val``. Supported on int32, int64, uint32
and uint64 operands only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   xorr   {  r   r   r   c                       \ rS rSrSrSrg)
atomic.inci  zinc(ary, idx, val)

Perform atomic ``ary[idx] += 1`` up to val, then reset to 0. Supported
on uint32, and uint64 operands only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   incr     r   r   r   c                       \ rS rSrSrSrg)
atomic.deci  a  dec(ary, idx, val)

Performs::

   ary[idx] = (value if (array[idx] == 0) or
               (array[idx] > value) else array[idx] - 1)

Supported on uint32, and uint64 operands only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   decr     s    	r   r   c                       \ rS rSrSrSrg)atomic.exchi  zexch(ary, idx, val)

Perform atomic ``ary[idx] = val``. Supported on int32, int64, uint32 and
uint64 operands only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   exchr     r   r   r   c                       \ rS rSrSrSrg)
atomic.maxi  zmax(ary, idx, val)

Perform atomic ``ary[idx] = max(ary[idx], val)``.

Supported on int32, int64, uint32, uint64, float32, float64 operands
only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   maxr         		r   r   c                       \ rS rSrSrSrg)
atomic.mini  zmin(ary, idx, val)

Perform atomic ``ary[idx] = min(ary[idx], val)``.

Supported on int32, int64, uint32, uint64, float32, float64 operands
only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   minr     r   r   r   c                       \ rS rSrSrSrg)atomic.nanmaxi  a>  nanmax(ary, idx, val)

Perform atomic ``ary[idx] = max(ary[idx], val)``.

NOTE: NaN is treated as a missing value such that:
nanmax(NaN, n) == n, nanmax(n, NaN) == n

Supported on int32, int64, uint32, uint64, float32, float64 operands
only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   nanmaxr         	r   r   c                       \ rS rSrSrSrg)atomic.nanmini  a?  nanmin(ary, idx, val)

Perform atomic ``ary[idx] = min(ary[idx], val)``.

NOTE: NaN is treated as a missing value, such that:
nanmin(NaN, n) == n, nanmin(n, NaN) == n

Supported on int32, int64, uint32, uint64, float32, float64 operands
only.

Returns the old value at the index location as if it is loaded
atomically.
r	   Nr   r	   r   r   nanminr     r   r   r   c                       \ rS rSrSrSrg)atomic.compare_and_swapi  a   compare_and_swap(ary, old, val)

Conditionally assign ``val`` to the first element of an 1D array ``ary``
if the current value matches ``old``.

Supported on int32, int64, uint32, uint64 operands only.

Returns the old value as if it is loaded atomically.
r	   Nr   r	   r   r   compare_and_swapr         	r   r   c                       \ rS rSrSrSrg)
atomic.casi  a  cas(ary, idx, old, val)

Conditionally assign ``val`` to the element ``idx`` of an array
``ary`` if the current value of ``ary[idx]`` matches ``old``.

Supported on int32, int64, uint32, uint64 operands only.

Returns the old value as if it is loaded atomically.
r	   Nr   r	   r   r   casr     r   r   r   r	   N)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   N  s    Md d t d d d d t 
d 

d 
  	4 		d 	r   r   c                       \ rS rSrSrSrSrg)	nanosleepi  zz
nanosleep(ns)

Suspends the thread for a sleep duration approximately close to the delay
`ns`, specified in nanoseconds.
z<nansleep()>r	   Nr;   r	   r   r   r   r     s     #Mr   r   c                      \ rS rSrSrSr " S S\5      r " S S\5      r " S S	\5      r	 " S
 S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S  S!\5      r " S" S#\5      r " S$ S%\5      r " S& S'\5      r " S( S)\5      r " S* S+\5      r " S, S-\5      r " S. S/\5      r " S0 S1\5      r " S2 S3\5      r " S4 S5\5      r " S6 S7\5      r  " S8 S9\5      r! " S: S;\5      r" " S< S=\5      r# " S> S?\5      r$S@r%gA)Bfp16i  z"Namespace for fp16 operations
    z<fp16>c                       \ rS rSrSrSrg)	fp16.haddi	  zhadd(a, b)

Perform fp16 addition, (a + b) in round to nearest mode. Supported
on fp16 operands only.

Returns the fp16 result of the addition.

r	   Nr   r	   r   r   haddr   	  r   r   r   c                       \ rS rSrSrSrg)	fp16.hsubi  zhsub(a, b)

Perform fp16 subtraction, (a - b) in round to nearest mode. Supported
on fp16 operands only.

Returns the fp16 result of the subtraction.

r	   Nr   r	   r   r   hsubr     r   r   r   c                       \ rS rSrSrSrg)	fp16.hmuli  zhmul(a, b)

Perform fp16 multiplication, (a * b) in round to nearest mode. Supported
on fp16 operands only.

Returns the fp16 result of the multiplication.

r	   Nr   r	   r   r   hmulr     r   r   r   c                       \ rS rSrSrSrg)	fp16.hdivi'  zhdiv(a, b)

Perform fp16 division, (a / b) in round to nearest mode. Supported
on fp16 operands only.

Returns the fp16 result of the division

r	   Nr   r	   r   r   hdivr   '  r   r   r   c                       \ rS rSrSrSrg)	fp16.hfmai1  zhfma(a, b, c)

Perform fp16 multiply and accumulate, (a * b) + c in round to nearest
mode. Supported on fp16 operands only.

Returns the fp16 result of the multiplication.

r	   Nr   r	   r   r   hfmar   1  r   r   r   c                       \ rS rSrSrSrg)	fp16.hnegi;  zrhneg(a)

Perform fp16 negation, -(a). Supported on fp16 operands only.

Returns the fp16 result of the negation.

r	   Nr   r	   r   r   hnegr   ;      	r   r   c                       \ rS rSrSrSrg)	fp16.habsiD  z}habs(a)

Perform fp16 absolute value, |a|. Supported on fp16 operands only.

Returns the fp16 result of the absolute value.

r	   Nr   r	   r   r   habsr   D  r   r   r   c                       \ rS rSrSrSrg)	fp16.hsiniM  zshsin(a)

Calculate sine in round to nearest even mode. Supported on fp16
operands only.

Returns the sine result.

r	   Nr   r	   r   r   hsinr   M  r   r   r   c                       \ rS rSrSrSrg)	fp16.hcosiW  zwhsin(a)

Calculate cosine in round to nearest even mode. Supported on fp16
operands only.

Returns the cosine result.

r	   Nr   r	   r   r   hcosr   W  r   r   r   c                       \ rS rSrSrSrg)	fp16.hlogia  zhlog(a)

Calculate natural logarithm in round to nearest even mode. Supported
on fp16 operands only.

Returns the natural logarithm result.

r	   Nr   r	   r   r   hlogr   a  r   r   r   c                       \ rS rSrSrSrg)fp16.hlog10ik  zhlog10(a)

Calculate logarithm base 10 in round to nearest even mode. Supported
on fp16 operands only.

Returns the logarithm base 10 result.

r	   Nr   r	   r   r   hlog10r   k  r   r   r   c                       \ rS rSrSrSrg)
fp16.hlog2iu  zhlog2(a)

Calculate logarithm base 2 in round to nearest even mode. Supported
on fp16 operands only.

Returns the logarithm base 2 result.

r	   Nr   r	   r   r   hlog2r   u  r   r   r   c                       \ rS rSrSrSrg)	fp16.hexpi  zhexp(a)

Calculate natural exponential, exp(a), in round to nearest mode.
Supported on fp16 operands only.

Returns the natural exponential result.

r	   Nr   r	   r   r   hexpr     r   r   r   c                       \ rS rSrSrSrg)fp16.hexp10i  zhexp10(a)

Calculate exponential base 10 (10 ** a) in round to nearest mode.
Supported on fp16 operands only.

Returns the exponential base 10 result.

r	   Nr   r	   r   r   hexp10r     r   r   r   c                       \ rS rSrSrSrg)
fp16.hexp2i  zhexp2(a)

Calculate exponential base 2 (2 ** a) in round to nearest mode.
Supported on fp16 operands only.

Returns the exponential base 2 result.

r	   Nr   r	   r   r   hexp2r     r   r   r   c                       \ rS rSrSrSrg)fp16.hfloori  zhfloor(a)

Calculate the floor, the largest integer less than or equal to 'a'.
Supported on fp16 operands only.

Returns the floor result.

r	   Nr   r	   r   r   hfloorr     r   r   r   c                       \ rS rSrSrSrg)
fp16.hceili  zhceil(a)

Calculate the ceil, the smallest integer greater than or equal to 'a'.
Supported on fp16 operands only.

Returns the ceil result.

r	   Nr   r	   r   r   hceilr     r   r   r   c                       \ rS rSrSrSrg)
fp16.hsqrti  zhsqrt(a)

Calculate the square root of the input argument in round to nearest
mode. Supported on fp16 operands only.

Returns the square root result.

r	   Nr   r	   r   r   hsqrtr     r   r   r   c                       \ rS rSrSrSrg)fp16.hrsqrti  zhrsqrt(a)

Calculate the reciprocal square root of the input argument in round
to nearest even mode. Supported on fp16 operands only.

Returns the reciprocal square root result.

r	   Nr   r	   r   r   hrsqrtr     r   r   r   c                       \ rS rSrSrSrg)	fp16.hrcpi  zhrcp(a)

Calculate the reciprocal of the input argument in round to nearest
even mode. Supported on fp16 operands only.

Returns the reciprocal result.

r	   Nr   r	   r   r   hrcpr    r   r   r  c                       \ rS rSrSrSrg)
fp16.hrinti  z|hrint(a)

Round the input argument to nearest integer value. Supported on fp16
operands only.

Returns the rounded result.

r	   Nr   r	   r   r   hrintr    r   r   r  c                       \ rS rSrSrSrg)fp16.htrunci  zhtrunc(a)

Truncate the input argument to its integer portion. Supported
on fp16 operands only.

Returns the truncated result.

r	   Nr   r	   r   r   htruncr    r   r   r	  c                       \ rS rSrSrSrg)fp16.heqi  zheq(a, b)

Perform fp16 comparison, (a == b). Supported
on fp16 operands only.

Returns True if a and b are equal and False otherwise.

r	   Nr   r	   r   r   heqr    r   r   r  c                       \ rS rSrSrSrg)fp16.hnei  zhne(a, b)

Perform fp16 comparison, (a != b). Supported
on fp16 operands only.

Returns True if a and b are not equal and False otherwise.

r	   Nr   r	   r   r   hner    r   r   r  c                       \ rS rSrSrSrg)fp16.hgei  zhge(a, b)

Perform fp16 comparison, (a >= b). Supported
on fp16 operands only.

Returns True if a is >= b and False otherwise.

r	   Nr   r	   r   r   hger    r   r   r  c                       \ rS rSrSrSrg)fp16.hgti  z~hgt(a, b)

Perform fp16 comparison, (a > b). Supported
on fp16 operands only.

Returns True if a is > b and False otherwise.

r	   Nr   r	   r   r   hgtr    r   r   r  c                       \ rS rSrSrSrg)fp16.hlei  zhle(a, b)

Perform fp16 comparison, (a <= b). Supported
on fp16 operands only.

Returns True if a is <= b and False otherwise.

r	   Nr   r	   r   r   hler    r   r   r  c                       \ rS rSrSrSrg)fp16.hlti  z~hlt(a, b)

Perform fp16 comparison, (a < b). Supported
on fp16 operands only.

Returns True if a is < b and False otherwise.

r	   Nr   r	   r   r   hltr    r   r   r  c                       \ rS rSrSrSrg)	fp16.hmaxi  zhmax(a, b)

Perform fp16 maximum operation, max(a,b) Supported
on fp16 operands only.

Returns a if a is greater than b, returns b otherwise.

r	   Nr   r	   r   r   hmaxr    r   r   r  c                       \ rS rSrSrSrg)	fp16.hmini)  zhmin(a, b)

Perform fp16 minimum operation, min(a,b). Supported
on fp16 operands only.

Returns a if a is less than b, returns b otherwise.

r	   Nr   r	   r   r   hminr   )  r   r   r!  r	   N)&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  r  r!  r   r	   r   r   r   r     st   Mt t t t t t t t t t   t       t   d d d d d d t t r   r   c                  t   / n SnSnSn[         R                  " X5       H  u  pEU SU 3nUSU n[        U[        40 U Vs0 s H  oS _M     snESU S3[	        USU  V	s/ s H  n	[        U	[
        R                  S	9PM     sn	S
9SU S3S.ES/ 0E5      n
U R                  U
5        M     U $ s  snf s  sn	f )z)Make user facing objects for vector types)
int8int16int32int64uint8uint16uint32uint64float32float64)            )r.   r2   r5   wr.   Nc                     g r   r	   r   s    r   <lambda>(make_vector_type_stubs.<locals>.<lambda>R  s    dr   <>)namekind)
parameterszA stub for z to be used in CUDA kernels.)r   __signature__r   aliases)	itertoolsproducttyper   r   r   POSITIONAL_ONLYappend)vector_type_stubsvector_type_prefixvector_type_element_countsvector_type_attribute_namesprefixnelem	type_name
attr_namesattr	attr_namevector_type_stubs              r   make_vector_type_stubsrL  7  s#    "."6"** haw'	0%8
w7ABzt**zB ()1%5%. ,6fu+=; ,>i "!*1J1J+=; &
 "-YK 8$  $	 b/
" 	  !12/0  C;s   B0""B5c                    S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R
                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S[         R                  " [         R                  5      R                  S-   3S.n[        [         5      nU  H#  nX#R"                  SS    R%                  U5        M%     UR'                  5        H@  u  pEX%   n U  H1  nUR"                  S   nUR(                  R%                  U U 35        M3     MB     g)	zNFor each of the stubs, create its aliases.

For example: float64x3 -> double3
int   uintfloat)charshortrN  longlonglongucharushortrP  ulong	ulonglongrQ  doubleN)nprR   byteitemsizerS  intcint_rU  ubyterW  uintcrP  rY  singlerZ  r   listr   r@  itemsr;  )rA  base_type_to_aliasbase_type_to_vector_typestubalias	base_typerF  s          r   map_vector_type_stubs_to_aliasrl  d  s7    bhhrww'001456rxx)22Q678RXXbgg&//!345bhhrww'001456"((2;;/881<=>*33a789")),559:;rxx)22Q678)22Q678BHHR\\2;;a?@A")),559:;"((299-66:;<  +40! s!34;;DA " /4464?%DMM"%ELL5'% 12 & 7r   ).r   numpyr]  collectionsr   r'   r<  inspectr   r   objectr   r)   r+   r9   r=   rA   rD   rG   rJ   rM   rX   r]   rd   rg   rk   rn   rq   rt   rw   rz   r}   r   r   r   r   r   r   r   r   r   r   r   rL  rl  _vector_type_stubsr	   r   r   <module>rr     s    #   ("6 "4 "* *)t ))t )(d (!t !T T &D  
D 
 $t $$$ $$$ $)T )
)T 
)
% 
%&$ &, ,- -&$ &4 4 $ $ 4 $ 4 cT cR# #m4 mf	*Z3B ,-  1 2r   