From 27c65003d25bcf79825c8847fe173254e225ed44 Mon Sep 17 00:00:00 2001 From: Mike Croucher Date: Wed, 1 Apr 2015 13:23:06 +0100 Subject: [PATCH] Working in Py2 but broken in Py3 --- GPy/util/choleskies.py | 104 ++++++++++++++++++++--------------------- GPy/util/misc.py | 2 +- 2 files changed, 53 insertions(+), 53 deletions(-) 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