Various Python 3 fixes

This commit is contained in:
Mike Croucher 2015-03-03 20:47:09 +00:00
parent 4642f5ac2b
commit 35aec1c6d0
2 changed files with 3 additions and 3 deletions

View file

@ -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))
@ -389,7 +389,7 @@ def DSYR_blas(A, x, alpha=1.):
"""
N = c_int(A.shape[0])
LDA = c_int(A.shape[0])
UPLO = c_char('l')
UPLO = c_char('l'.encode('ascii'))
ALPHA = c_double(alpha)
A_ = A.ctypes.data_as(ctypes.c_void_p)
x_ = x.ctypes.data_as(ctypes.c_void_p)