0
def crearMatrix(name,shape=(2,2)):
X = np.empty(shape)
for i in range(shape[0]): #X.shape[1]
for j in range(shape[1]):
X[i][j] = Symbol("a"+'_{'+str(i*10+j+11)+'}')
return X
錯誤消息:
TypeError: can't convert expression to float