import numpy as np
a = np.empty([4,5])
x = [[complex(np.cos(a[i][j]),np.sin(a[i][j]))for j in range(c.shape[1])]for i in range(c.shape[0])]
如有其他实现方式,恳请告知。
import numpy as np
a = np.empty([4,5])
x = [[complex(np.cos(a[i][j]),np.sin(a[i][j]))for j in range(c.shape[1])]for i in range(c.shape[0])]
如有其他实现方式,恳请告知。