2 years ago
#46897
Thesmot
speed up matrices multiplication of different type using numba
I'm trying to implement this code with numba, but don't understand why it's not compiling in nopython mode.
def mult(x,y):
ran = len(x)
for i in range(ran):
y[i,:] = x[i]*y[i,:]
return y
The error is: typing error non-precise type pyobject
x is a matrix of form (n) and y (n,m) with dtype 'f4'.
numba
jit
typing
0 Answers
Your Answer