U
    Ãmœd  ã                   @   sš   d dl mZmZ d dlZd dlZeejƒZeedƒk Ze Z	eedƒk Z
eedƒk Zeedƒk Zdd„ Zejdfd	d
„Ze
rŠddlmZ nd dlmZ dS )é    )ÚVersionÚparseNz1.4.99z1.5.99z1.6.99z1.8.99c                 C   sÀ   | dkr| S | | d @ s| S t dƒ}d}|| k r°|}|| k rŽ|  |  }d|d  ¡  }|| }|| krl|S ||k rx|}|d9 }|| kr4|S q4||k rš|}|d9 }|| kr(|S q(||k r¼|}|S )a!  
    Find the next regular number greater than or equal to target.
    Regular numbers are composites of the prime factors 2, 3, and 5.
    Also known as 5-smooth numbers or Hamming numbers, these are the optimal
    size for inputs to FFTPACK.

    Target must be a positive integer.
    é   é   Úinfé   é   é   )ÚfloatÚ
bit_length)ÚtargetÚmatchZp5Zp35ZquotientÚp2ÚN© r   úQ/home/sam/Atlas/atlas_env/lib/python3.8/site-packages/statsmodels/compat/scipy.pyÚ_next_regular   s6    	r   c                 C   s>   t j| td�| }|dk	r$| |¡}t|t jƒs:t  |¡}|S )zReturn an array of all value.)ZdtypeN)ÚnpZonesÚboolZastypeÚ
isinstanceZndarrayZasarray)ÚshapeÚvalueÚtypecodeÚoutr   r   r   Ú	_valarray;   s    

r   r   )Úmultivariate_t)Zpackaging.versionr   r   Únumpyr   ZscipyÚ__version__Z
SP_VERSIONZSP_LT_15ZSCIPY_GT_14ZSP_LT_16ZSP_LT_17ZSP_LT_19r   Únanr   Z_scipy_multivariate_tr   Zscipy.statsr   r   r   r   Ú<module>   s   
-