TypeError: only size-1 arrays can be converted to Python scalar: input to function raises error if from a list

前端 未结 0 671
失恋的感觉
失恋的感觉 2020-12-13 10:31

I have the following code:

N = [16, 32, 64] #number of particles
K = [0.2, 0.3, 0.4, 0.5, 0.6, 0.7] #coupling constant
ising = np.ones((N)) #all aligned, isin         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题