mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-03 16:52:39 +02:00
deprecated flapack, namespace changed to lapack.flapack
This commit is contained in:
parent
12d6f5056b
commit
f562d6cd46
3 changed files with 9 additions and 9 deletions
|
|
@ -11,7 +11,7 @@ import re
|
|||
import pdb
|
||||
import cPickle
|
||||
import types
|
||||
import scipy.lib.lapack.flapack
|
||||
#import scipy.lib.lapack.flapack
|
||||
import scipy as sp
|
||||
|
||||
def mdot(*args):
|
||||
|
|
@ -101,7 +101,7 @@ def chol_inv(L):
|
|||
|
||||
"""
|
||||
|
||||
return linalg.flapack.dtrtri(L, lower = True)[0]
|
||||
return linalg.lapack.flapack.dtrtri(L, lower = True)[0]
|
||||
|
||||
|
||||
def multiple_pdinv(A):
|
||||
|
|
@ -118,7 +118,7 @@ def multiple_pdinv(A):
|
|||
N = A.shape[-1]
|
||||
chols = [jitchol(A[:,:,i]) for i in range(N)]
|
||||
halflogdets = [np.sum(np.log(np.diag(L[0]))) for L in chols]
|
||||
invs = [linalg.flapack.dpotri(L[0],True)[0] for L in chols]
|
||||
invs = [linalg.lapack.flapack.dpotri(L[0],True)[0] for L in chols]
|
||||
invs = [np.triu(I)+np.triu(I,1).T for I in invs]
|
||||
return np.dstack(invs),np.array(halflogdets)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue