What is the data type of t? It might fix your issue if you do t = np.asarray(t), as theano interactive nicely with numpy array (or any python object with __array__ property, really). Which is also explain why doing something like timeexp = t0/theta * t works, as python convert t in this case to similar type as the result of t0/theta.
1 Like