From 79f4b26f4d6bec363c2cbe3857ed6844193c7501 Mon Sep 17 00:00:00 2001 From: Mike Croucher Date: Sat, 28 Feb 2015 12:41:23 +0000 Subject: [PATCH] Fixed integer division for Python 3 compat --- GPy/util/linalg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/util/linalg.py b/GPy/util/linalg.py index 88ecf011..7f1a28f3 100644 --- a/GPy/util/linalg.py +++ b/GPy/util/linalg.py @@ -362,7 +362,7 @@ def tdot_blas(mat, out=None): A = mat.ctypes.data_as(ctypes.c_void_p) BETA = c_double(0.0) C = out.ctypes.data_as(ctypes.c_void_p) - LDC = c_int(np.max(out.strides) / 8) + LDC = c_int(np.max(out.strides) // 8) dsyrk(byref(UPLO), byref(TRANS), byref(N), byref(K), byref(ALPHA), A, byref(LDA), byref(BETA), C, byref(LDC))