Fixed database typo and removed unnecessary class identifier.
This commit is contained in:
parent
00ad49a143
commit
45fb349a7d
5098 changed files with 952558 additions and 85 deletions
31
venv/Lib/site-packages/scipy/_lib/uarray.py
Normal file
31
venv/Lib/site-packages/scipy/_lib/uarray.py
Normal file
|
@ -0,0 +1,31 @@
|
|||
"""`uarray` provides functions for generating multimethods that dispatch to
|
||||
multiple different backends
|
||||
|
||||
This should be imported, rather than `_uarray` so that an installed version could
|
||||
be used instead, if available. This means that users can call
|
||||
`uarray.set_backend` directly instead of going through SciPy.
|
||||
|
||||
"""
|
||||
|
||||
|
||||
# Prefer an installed version of uarray, if available
|
||||
try:
|
||||
import uarray as _uarray
|
||||
except ImportError:
|
||||
_has_uarray = False
|
||||
else:
|
||||
from scipy._lib._pep440 import Version as _Version
|
||||
|
||||
_has_uarray = _Version(_uarray.__version__) >= _Version("0.5")
|
||||
del _uarray
|
||||
del _Version
|
||||
|
||||
|
||||
if _has_uarray:
|
||||
from uarray import *
|
||||
from uarray import _Function
|
||||
else:
|
||||
from ._uarray import *
|
||||
from ._uarray import _Function
|
||||
|
||||
del _has_uarray
|
Loading…
Add table
Add a link
Reference in a new issue