ArrayReshape[list,dims]
将 list 中的元素排列成一个维数为 dims 的矩形数组.
ArrayReshape[list,dims,padding]
如果 list 不含有足够元素,则使用指定的填充.
ArrayReshape
ArrayReshape[list,dims]
将 list 中的元素排列成一个维数为 dims 的矩形数组.
ArrayReshape[list,dims,padding]
如果 list 不含有足够元素,则使用指定的填充.
更多信息
- ArrayReshape 总是给出一个指定维数的矩形数组,在必要时忽略最后的元素,或添加新的元素.
- 在得到的数组中,元素的排列方式使得在长度范围内,Flatten[ArrayReshape[list,dims]] 与 Flatten[list] 的结果相同.
- 在 ArrayReshape[list,dims,padding] 中,可以使用任何可被 ArrayPad 支持的填充方式. 缺省的填充值为 0.
- ArrayReshape 适用于 SparseArray 对象.
文本
Wolfram Research (2012),ArrayReshape,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ArrayReshape.html.
CMS
Wolfram 语言. 2012. "ArrayReshape." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ArrayReshape.html.
APA
Wolfram 语言. (2012). ArrayReshape. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ArrayReshape.html 年
BibTeX
@misc{reference.wolfram_2025_arrayreshape, author="Wolfram Research", title="{ArrayReshape}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/ArrayReshape.html}", note=[Accessed: 01-May-2026]}
BibLaTeX
@online{reference.wolfram_2025_arrayreshape, organization={Wolfram Research}, title={ArrayReshape}, year={2012}, url={https://reference.wolfram.com/language/ref/ArrayReshape.html}, note=[Accessed: 01-May-2026]}