numpy.tile
时间: 2023-08-29 09:11:31 浏览: 162
numpy
numpy.tile函数是一个在Python的numpy库中的函数,它的作用是将给定的数组进行平铺。使用该函数之前需要先导入numpy库。这个函数的格式为tile(A, reps),其中A是输入的数组,reps是数组A重复的次数。reps可以是一个数字,也可以是一个二维元组。通过调用numpy.tile函数,可以将数组在一个平面上进行平铺展开。函数的返回值是平铺后的数组。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Python-Numpy库中的tile()函数详解](https://blog.csdn.net/weixin_41998772/article/details/113563806)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [np.tile()函数,numpy.tile()函数的通俗的详细解释,python中有哪些函数可扩展数组数据?np.repeat/np....](https://blog.csdn.net/PSpiritV/article/details/123266458)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文