B
    ;9\J                 @   s
  d Z ddlmZmZ edr"dZndZdZddlZddlZddl	Z	ddl
mZ dd	lmZmZmZmZ dd
lmZ ddlmZmZmZmZmZmZ e Ze Zde	 krddlZed ed nee ed ddlm Z  ej!"e#Z"e j Z$dd Z%dddZ&dS )a  
Numexpr is a fast numerical expression evaluator for NumPy.  With it,
expressions that operate on arrays (like "3*a+4*b") are accelerated
and use less memory than doing the same calculation in Python.

See:

https://github.com/pydata/numexpr

for more info about it.

   )showget_infoZmklTF    N)E)NumExprdisassembleevaluatere_evaluate)MAX_THREADS)get_vml_versionset_vml_accuracy_modeset_vml_num_threadsset_num_threadsdetect_number_of_coresdetect_number_of_threadsZsparczThe number of threads have been set to 1 because problems related to threading have been reported on some sparc machine. The number of threads can be changed using the "set_num_threads" function.)versionc              C   s4   yddl } | j S  tk
r.   tdY nX dS )z6Print the versions of software that numexpr relies on.r   NzT`numexpr.tests` could not be imported, likely it was excluded from the distribution.)numexpr.teststestsprint_versionsImportError)numexpr r   /lib/python3.7/site-packages/numexpr/__init__.pyr   G   s
    
r   c             C   s8   yddl }|jj| dS  tk
r2   tdY nX dS )z$Run all the tests in the test suite.r   N)	verbosityzT`numexpr.tests` could not be imported, likely it was excluded from the distribution.)r   r   testr   )r   r   r   r   r   r   P   s
    r   )r   )'__doc__Z
__config__r   Zshow_configr   Zuse_vmlZis_cpu_amd_intelosos.pathplatformZnumexpr.expressionsr   Znumexpr.necompilerr   r   r   r	   Znumexpr.interpreterr
   Znumexpr.utilsr   r   r   r   r   r   ZncoresZnthreadsmachinewarningswarn r   pathdirname__file____version__r   r   r   r   r   r   <module>   s0    

	