+
     þÎjØ(  ã                   ó  € ^ RI t ^ RIHtHtHtHtHtHtHtH	t	H
t
 ^ RIt]P                  ! R]P                  3R]P                  3.RR7      t]	! ]4      t]P                   ;tt]P                   '       * t]
! ]]]R7      R 4       t]
! ]]]R7      R	 4       t]
! ]]]R7      R
 4       t]
! ]]]R7      R 4       t]
! ]]]R7      R 4       t]
! ]]]R7      R 4       t]
! ]]]R7      R 4       t]
! ]]]R7      R 4       t]P                  ! ^] P8                  ,          4      t]P
                  ! ^] P8                  ,          4      t]
! ]]]R7      R 4       t]
! ]]]R7      R 4       t ]
! ]]]R7      R 4       t!RR lt"RR lt#R# )é    N)	ÚconfigÚcudaÚfloat32Úfloat64Úuint32Úint64Úuint64Ú
from_dtypeÚjitÚs0Ús1T)Úalign)ÚforceobjÚloopliftÚnopythonc                óR  € \        V4      p\        V4      pV\        R4      ,           pW3\        ^4      ,	          ,          \        R4      ,          pW3\        ^4      ,	          ,          \        R4      ,          pW3\        ^4      ,	          ,          pW0V,          R&   W0V,          R&   R# )a�  Use SplitMix64 to generate an xoroshiro128p state from 64-bit seed.

This ensures that manually set small seeds don't result in a predictable
initial sequence from the random number generator.

:type states: 1D array, dtype=xoroshiro128p_dtype
:param states: array of RNG states
:type index: uint64
:param index: offset in states to update
:type seed: int64
:param seed: seed value to use when initializing state
l   |”~åf»q	 l   ¹eÉ9´Âz l   ëb&ì&‚&	 r   r   N)r   r	   r   )ÚstatesÚindexÚseedÚzs   &&& ÚG/opt/data/home/.local/lib/python3.14/site-packages/numba/cuda/random.pyÚinit_xoroshiro128p_stater   .   s„   € ô �%‹L€EÜ�$‹<€DàŒvÐ(Ó)Õ)€AØ	
”6˜"“:�oÕ	¤&Ð);Ó"<Õ<€AØ	
”6˜"“:�oÕ	¤&Ð);Ó"<Õ<€AØ	”&˜“*�_Õ€Aàˆ5…M�$ÑØˆ5…M�$Óó    c                óz   € \        V 4      p \        V4      pW,          V \        ^@V,
          4      ,	          ,          # )zLeft rotate x by k bits.)r	   r   )ÚxÚks   &&r   Úrotlr   H   s0   € ô 	ˆq‹	€AÜˆq‹	€AØ�F�qœF 2¨¥6›NÕ*Õ+Ð+r   c                óP  € \        V4      pW,          R,          pW,          R,          pW#,           pW2,          p\        \        V\        ^74      4      4      V,          V\        ^4      ,          ,          W,          R&   \        \        V\        ^$4      4      4      W,          R&   V# )zåReturn the next random uint64 and advance the RNG in states[index].

:type states: 1D array, dtype=xoroshiro128p_dtype
:param states: array of RNG states
:type index: int64
:param index: offset in states to update
:rtype: uint64
r   r   )r   r	   r   r   )r   r   r   r   Úresults   &&   r   Úxoroshiro128p_nextr    P   sƒ   € ô �%‹L€EØ	��tÕ	€BØ	��tÕ	€BØ�W€Fà…H€BÜ ¤ b¬&°«*Ó!5Ó6¸Õ;¸rÄVÈBÃZÕ?OÕP€F…M�$ÑÜ ¤ b¬&°«*Ó!5Ó6€F…M�$Ñà€Mr   c                ó²  € \        V4      p\        R4      \        R4      3p\        ^ 4      p\        ^ 4      p\        ^4       Fz  p\        ^@4       Fh  pW%,          \        ^4      \        V4      ,          ,          '       d-   W0V,          R,          ,          pW@V,          R,          ,          p\	        W4       Kj  	  K|  	  W0V,          R&   W@V,          R&   R# )zÇAdvance the RNG in ``states[index]`` by 2**64 steps.

:type states: 1D array, dtype=xoroshiro128p_dtype
:param states: array of RNG states
:type index: int64
:param index: offset in states to update
l   ËzKWŸ`u l   "U.XC r   r   N)r   r	   Úranger   r    )r   r   Újumpr   r   ÚiÚbs   &&     r   Úxoroshiro128p_jumpr&   f   s¯   € ô �%‹L€EäÐ%Ó&¬Ð/AÓ(BÐC€Dä	�‹€BÜ	�‹€Bä�1ŽXˆÜ�r–ˆAØ�wœ& ›)¤v¨a£yÕ0×1Ô1Ø˜U•m DÕ)Õ)�Ø˜U•m DÕ)Õ)�Ü˜vÖ-ó	 ñ ð ˆ5…M�$ÑØˆ5…M�$Ór   c                óœ   € \        V 4      p V \        ^4      ,	          \        ^4      \        ^4      \        ^54      ,          ,          ,          # )z7Convert uint64 to float64 value in the range [0.0, 1.0))r	   r   r   ©r   s   &r   Úuint64_to_unit_float64r)   �   s6   € ô 	ˆq‹	€AØ”˜“�O¤¨£
¬f°Q«i¼6À"»:Õ.EÕ FÕGÐGr   c                ó@   € \        V 4      p \        \        V 4      4      # )z7Convert uint64 to float32 value in the range [0.0, 1.0))r	   r   r)   r(   s   &r   Úuint64_to_unit_float32r+   ˆ   s   € ô 	ˆq‹	€AÜÔ)¨!Ó,Ó-Ð-r   c                ó@   € \        V4      p\        \        W4      4      # )zæReturn a float32 in range [0.0, 1.0) and advance ``states[index]``.

:type states: 1D array, dtype=xoroshiro128p_dtype
:param states: array of RNG states
:type index: int64
:param index: offset in states to update
:rtype: float32
)r   r+   r    ©r   r   s   &&r   Úxoroshiro128p_uniform_float32r.   �   ó   € ô �%‹L€EÜ!Ô"4°VÓ"CÓDÐDr   c                ó@   € \        V4      p\        \        W4      4      # )zæReturn a float64 in range [0.0, 1.0) and advance ``states[index]``.

:type states: 1D array, dtype=xoroshiro128p_dtype
:param states: array of RNG states
:type index: int64
:param index: offset in states to update
:rtype: float64
)r   r)   r    r-   s   &&r   Úxoroshiro128p_uniform_float64r1   �   r/   r   c                ó
  € \        V4      p\        W4      p\        W4      p\        P                  ! \	        R4      ) \        P
                  ! V4      ,          4      \        P                  ! \        V,          4      ,          pV# )av  Return a normally distributed float32 and advance ``states[index]``.

The return value is drawn from a Gaussian of mean=0 and sigma=1 using the
Box-Muller transform.  This advances the RNG sequence by two steps.

:type states: 1D array, dtype=xoroshiro128p_dtype
:param states: array of RNG states
:type index: int64
:param index: offset in states to update
:rtype: float32
ç       @)r   r.   ÚmathÚsqrtr   ÚlogÚcosÚTWO_PI_FLOAT32©r   r   Úu1Úu2Úz0s   &&   r   Úxoroshiro128p_normal_float32r=   ¯   ó\   € ô �%‹L€Eä	& vÓ	5€BÜ	& vÓ	5€Bä	�Š”G˜C“L�=¤4§8¢8¨B£<Õ/Ó	0´4·8²8¼NÈRÕ<OÓ3PÕ	P€Bð €Ir   c                ó
  € \        V4      p\        W4      p\        W4      p\        P                  ! \	        R4      ) \        P
                  ! V4      ,          4      \        P                  ! \        V,          4      ,          pV# )av  Return a normally distributed float32 and advance ``states[index]``.

The return value is drawn from a Gaussian of mean=0 and sigma=1 using the
Box-Muller transform.  This advances the RNG sequence by two steps.

:type states: 1D array, dtype=xoroshiro128p_dtype
:param states: array of RNG states
:type index: int64
:param index: offset in states to update
:rtype: float64
r3   )r   r.   r4   r5   r   r6   r7   ÚTWO_PI_FLOAT64r9   s   &&   r   Úxoroshiro128p_normal_float64rA   È   r>   r   c                 ó  € V P                   ^ ,          p\        V4      p\        V4      pV^8¼  d]   \        V ^ V4       \        V4       F  p\	        V ^ 4       K  	  \        ^V4       F  pW^,
          ,          W&   \	        W4       K!  	  R# R# )r   N)Úshaper	   r   r"   r&   )r   r   Úsubsequence_startÚnÚ_r$   s   &&&   r   Úinit_xoroshiro128p_states_cpurG   á   s   € à�‰�Q�€AÜ�$‹<€DÜÐ0Ó1ÐàˆA„vÜ  ¨¨DÔ1ô Ð(Ö)ˆAÜ˜v qÖ)ñ *ô �q˜!–ˆAØ 1�u�ˆF‰IÜ˜vÖ)ó ñ r   c                óŽ   € \         P                  ! V P                  \        R7      p\	        WAV4       V P                  WCR7       R# )a…  Initialize RNG states on the GPU for parallel generators.

This initializes the RNG states so that each state in the array corresponds
subsequences in the separated by 2**64 steps from each other in the main
sequence.  Therefore, as long no CUDA thread requests more than 2**64
random numbers, all of the RNG states produced by this function are
guaranteed to be independent.

The subsequence_start parameter can be used to advance the first RNG state
by a multiple of 2**64 steps.

:type states: 1D DeviceNDArray, dtype=xoroshiro128p_dtype
:param states: array of RNG states
:type seed: uint64
:param seed: starting seed for list of generators
)rC   Údtype)ÚstreamN)ÚnpÚemptyrC   Úxoroshiro128p_dtyperG   Úcopy_to_device)r   r   rD   rJ   Ú
states_cpus   &&&& r   Úinit_xoroshiro128p_statesrP   ô   s5   € ô& —’ §¡Ô4GÔH€JÜ! *Ð4EÔFà
×Ñ˜*ÐÖ4r   c                óX   € \         P                  ! V \        VR7      p\        WAW#4       V# )aõ  Returns a new device array initialized for n random number generators.

This initializes the RNG states so that each state in the array corresponds
subsequences in the separated by 2**64 steps from each other in the main
sequence.  Therefore, as long no CUDA thread requests more than 2**64
random numbers, all of the RNG states produced by this function are
guaranteed to be independent.

The subsequence_start parameter can be used to advance the first RNG state
by a multiple of 2**64 steps.

:type n: int
:param n: number of RNG states to create
:type seed: uint64
:param seed: starting seed for list of generators
:type subsequence_start: uint64
:param subsequence_start:
:type stream: CUDA stream
:param stream: stream to run initialization kernel on
)rI   rJ   )r   Údevice_arrayrM   rP   )rE   r   rD   rJ   r   s   &&&& r   Úcreate_xoroshiro128p_statesrS     s)   € ô* ×Ò˜qÔ(;ÀFÔK€FÜ˜fÐ,=ÔFØ€Mr   )r   r   )$r4   Únumbar   r   r   r   r   r   r	   r
   r   ÚnumpyrK   rI   rM   Úxoroshiro128p_typeÚENABLE_CUDASIMÚ	_forceobjÚ	_loopliftÚ	_nopythonr   r   r    r&   r)   r+   r.   r1   Úpir8   r@   r=   rA   rG   rP   rS   © r   r   Ú<module>r]      sý  ðÛ ÷$÷ $õ $ó ð4 —h’h  r§y¡yÐ 1°D¸"¿)¹)Ð3DÐEØ%)ô+Ð áÐ 3Ó4Ð ð ×-Ñ-Ð -€	ˆIØ×%Ñ%Ô%€	ñ ˆi )°iÔ@ñó Aðñ2 ˆi )°iÔ@ñ,ó Að,ñ ˆi )°iÔ@ñó Aðñ* ˆi )°iÔ@ñó Aðñ4 ˆi )°iÔ@ñHó AðHñ ˆi )°iÔ@ñ.ó Að.ñ ˆi )°iÔ@ñ
Eó Að
Eñ ˆi )°iÔ@ñ
Eó Að
Eð —’˜A §¡�KÓ(€Ø—’˜A §¡�KÓ(€ñ ˆi )°iÔ@ñó Aðñ0 ˆi )°iÔ@ñó Aðñ0 ˆi )°iÔ@ñ*ó Að*ô$5ö2r   