
    -id                         S SK rS SKJr  S rg)    N)Boundsc           
      `   U cn  [         R                  " [         R                  * /U-  [         R                  S9n[         R                  " [         R                  /U-  [         R                  S9nX#4$ [	        U [
        5      (       a  [         R                  " U R                  [         R                  S9n[         R                  " U R                  [         R                  S9n[         R                  " U[         R                  * [         R                  " U[        U5      -
  5      -  45      n[         R                  " U[         R                  [         R                  " U[        U5      -
  5      -  45      nX#4$ [         R                  " U  Vs/ s H  oDS   b  US   O[         R                  * PM      sn[         R                  S9n[         R                  " U  Vs/ s H  oDS   b  US   O[         R                  PM     sn[         R                  S9n[         R                  " U[         R                  * [         R                  " U[        U5      -
  5      -  45      n[         R                  " U[         R                  [         R                  " U[        U5      -
  5      -  45      nX#4$ s  snf s  snf )a  
`bounds` can either be an object with the properties lb and ub, or a list of tuples
indicating a lower bound and an upper bound for each variable. If the list contains
fewer entries than the length of x0, the remaining entries will generated as -/+ infinity.
Some examples of valid lists of tuple, assuming len(x0) == 3:
[(0, 1), (2, 3), (4, 5)] -> returns [0, 2, 4], [1, 3, 5]
[(0, 1), (None, 3)]      -> returns [0, -inf, -inf], [1, 3, inf]
[(0, 1), (-np.inf, 3)]   -> returns [0, -inf, -inf], [1, 3, inf]
)dtyper      )nparrayinffloat64
isinstancer   lbubconcatenateoneslen)boundslenx0r   r   bounds        T/var/www/html/venv/lib/python3.13/site-packages/scipy/_lib/pyprima/common/_bounds.pyprocess_boundsr      s    ~XXwioRZZ8XXrvvhunBJJ7v&&!!XXfiirzz2XXfiirzz2^^R"&&R)A!ABC^^RB(@!@ABv 
fUfUQx358"&&@fU]_]g]g	hB	VTVEQx358?VT\^\f\f	gB	bffWRWWUSW_%==>	?B	RVVBGGECGO$<<=	>B6M VTs   %J&$J+)numpyr   scipy.optimizer   r        r   <module>r      s     !r   