U
    ?h                     @   s    d dl m Z  ddlZdd ZdS )   fast_exp    Nc                  C   sz   t jddddd} t | }t dd | D }t jdd | d	D d	d
}||fD ]}t ||  dk sVtqVd S )Nr   i  T)Zendpointc                 S   s   g | ]}t d  |qS )Z	float64_tr   .0x r	   U/var/www/html/venv/lib/python3.8/site-packages/skimage/_shared/tests/test_fast_exp.py
<listcomp>   s     z!test_fast_exp.<locals>.<listcomp>c                 S   s   g | ]}t d  |qS )Z	float32_tr   r   r	   r	   r
   r      s     Zfloat32)Zdtypeg~jth?)npZlinspaceexparrayZastypeabsZmeanAssertionError)XYZ_y_f64Z_y_f32Z_yr	   r	   r
   test_fast_exp   s    
r   )r   numpyr   r   r	   r	   r	   r
   <module>   s   