mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
Fix cython check in linalg
This commit is contained in:
parent
46d3b6ce5c
commit
1aab041885
1 changed files with 5 additions and 2 deletions
|
|
@ -11,8 +11,11 @@ from scipy.linalg import lapack, blas
|
|||
from .config import config
|
||||
import logging
|
||||
|
||||
if config.getboolean('cython', 'working'):
|
||||
try:
|
||||
from . import linalg_cython
|
||||
use_linalg_cython = config.getboolean('cython', 'working')
|
||||
except ImportError:
|
||||
use_linalg_cython = False
|
||||
|
||||
def force_F_ordered_symmetric(A):
|
||||
"""
|
||||
|
|
@ -358,7 +361,7 @@ def symmetrify(A, upper=False):
|
|||
|
||||
note: tries to use cython, falls back to a slower numpy version
|
||||
"""
|
||||
if config.getboolean('cython', 'working'):
|
||||
if use_linalg_cython:
|
||||
_symmetrify_cython(A, upper)
|
||||
else:
|
||||
_symmetrify_numpy(A, upper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue