From 8c552c2509a89bdc198e70a90c8db1d52dc5d78b Mon Sep 17 00:00:00 2001 From: Mike Croucher Date: Sat, 28 Feb 2015 12:39:39 +0000 Subject: [PATCH] Fixed string encoding for Python 3 --- GPy/util/linalg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/util/linalg.py b/GPy/util/linalg.py index 9fd44a8d..88ecf011 100644 --- a/GPy/util/linalg.py +++ b/GPy/util/linalg.py @@ -353,11 +353,11 @@ def tdot_blas(mat, out=None): # of C order. However, I tried that and had errors with large matrices: # http://homepages.inf.ed.ac.uk/imurray2/code/tdot/tdot_broken.py mat = np.asfortranarray(mat) - TRANS = c_char('n') + TRANS = c_char('n'.encode('ascii')) N = c_int(mat.shape[0]) K = c_int(mat.shape[1]) LDA = c_int(mat.shape[0]) - UPLO = c_char('l') + UPLO = c_char('l'.encode('ascii')) ALPHA = c_double(1.0) A = mat.ctypes.data_as(ctypes.c_void_p) BETA = c_double(0.0)