diff --git a/GPy/util/choleskies.py b/GPy/util/choleskies.py index 7e068933..b64beae1 100644 --- a/GPy/util/choleskies.py +++ b/GPy/util/choleskies.py @@ -2,7 +2,7 @@ # Licensed under the GNU GPL version 3.0 import numpy as np -#from scipy import weave +from scipy import weave from . import linalg def safe_root(N): @@ -12,58 +12,58 @@ def safe_root(N): raise ValueError("N is not square!") return j -#def flat_to_triang(flat): -# """take a matrix N x D and return a M X M x D array where -# -# N = M(M+1)/2 -# -# the lower triangluar portion of the d'th slice of the result is filled by the d'th column of flat. -# """ -# N, D = flat.shape -# M = (-1 + safe_root(8*N+1))/2 -# ret = np.zeros((M, M, D)) -# flat = np.ascontiguousarray(flat) -# -# code = """ -# int count = 0; -# for(int m=0; m 1 and df_dg.shape[-1] > 1: - import ipdb; ipdb.set_trace() # XXX BREAKPOINT + #import ipdb; ipdb.set_trace() # XXX BREAKPOINT raise NotImplementedError('Not implemented for matricies yet') return df_dg * dg_dx