📜  在 python 中使用带零的 reshape - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:44.886000             🧑  作者: Mango

代码示例2
# This assumes that you have a 2-dimensional array
zeros = np.zeros(shape, dtype=np.int32)
zeros[:sigma.shape[0], :sigma.shape[1]] = sigma