From f6f36234c69a19d9698f9a474140b8ec939293b4 Mon Sep 17 00:00:00 2001 From: James Hensman Date: Wed, 22 Oct 2014 16:43:30 +0100 Subject: [PATCH] indexing bugfix in weave --- GPy/kern/_src/stationary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/kern/_src/stationary.py b/GPy/kern/_src/stationary.py index 0d186616..865086ac 100644 --- a/GPy/kern/_src/stationary.py +++ b/GPy/kern/_src/stationary.py @@ -200,7 +200,7 @@ class Stationary(Kern): gradq += tmp(n,m)*(X(n,q)-X2(m,q))*(X(n,q)-X2(m,q)); } } - grads[q] = gradq; + grads(q) = gradq; } """ weave.inline(code, ['tmp', 'X', 'X2', 'grads', 'N', 'M', 'Q'], type_converters=weave.converters.blitz, support_code="#include ")