https://www.runoob.com/numpy/numpy-array-creation.html
https://docs.scipy.org/doc/numpy/reference/generated/numpy.empty.html
numpy.empty
Return a new array of given shape and type, without initializing entries.
返回 一个指定形状(shape)、数据类型(dtype)且未初始化的数组。
参数
- shape
- dtype
- order
例子
1 | import numpy as np |
1 | np.empty([2, 2]) |
1 | np.empty([3, 2], dtype=int) |