python dot
时间: 2023-09-28 16:04:09 浏览: 99
beanieeee_python_Dot._
Python中的dot函数是用来计算矩阵的乘积的。它可以通过NumPy库调用,也可以由数组实例对象进行调用。例如,a.dot(b)和np.dot(a,b)效果是相同的。但是需要注意的是,矩阵乘积的计算不满足交换律,即np.dot(a,b)和np.dot(b,a)得到的结果是不一样的。
同时,如果我们有一个名为arr12的数组,它的值为[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],我们可以使用dot函数来计算矩阵的乘积。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Python笔记.docx](https://download.csdn.net/download/bxy0806/88235414)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [python中dot函数总结](https://blog.csdn.net/qq_36297093/article/details/125044307)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文