mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
better warings for cathcing of blaslib detection
This commit is contained in:
parent
133d69ff67
commit
ca41173225
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ import ctypes
|
||||||
from ctypes import byref, c_char, c_int, c_double # TODO
|
from ctypes import byref, c_char, c_int, c_double # TODO
|
||||||
# import scipy.lib.lapack
|
# import scipy.lib.lapack
|
||||||
import scipy
|
import scipy
|
||||||
|
import warnings
|
||||||
|
|
||||||
if np.all(np.float64((scipy.__version__).split('.')[:2]) >= np.array([0, 12])):
|
if np.all(np.float64((scipy.__version__).split('.')[:2]) >= np.array([0, 12])):
|
||||||
import scipy.linalg.lapack as lapack
|
import scipy.linalg.lapack as lapack
|
||||||
|
|
@ -25,6 +26,9 @@ try:
|
||||||
assert hasattr(_blaslib, 'dsyr_')
|
assert hasattr(_blaslib, 'dsyr_')
|
||||||
except AssertionError:
|
except AssertionError:
|
||||||
_blas_available = False
|
_blas_available = False
|
||||||
|
except AttributeError e:
|
||||||
|
_blas_available = False
|
||||||
|
warnings.warn("warning: caught this exception:" + str(e))
|
||||||
|
|
||||||
def dtrtrs(A, B, lower=0, trans=0, unitdiag=0):
|
def dtrtrs(A, B, lower=0, trans=0, unitdiag=0):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue