python - `numpy.argmax()` 的理论平均案例运行时复杂度
问题描述
我在看numpy.argmax
函数的代码。我很困惑该函数numpy
维护哪个数据结构。argmax
https://numpy.org/doc/stable/reference/generated/numpy.argmax.html
最后,我想知道原始数据类型的函数的理论平均情况运行时间复杂度是多少。numpy argmax
是这样O(logN)
还是O(N)
一般情况下?
这也可能是一个相关问题:Faster alternatives to numpy.argmax/argmin which is slow
提前致谢。
解决方案
推荐阅读
- javascript - 为什么笔记本电脑触摸板“点击”和触摸板按钮“点击”会在 Chrome 上破坏 .hover(),但使用 PC 鼠标一切正常?
- javascript - js 从 window['id'] 与 document.getElementById('id') 获取元素
- sql - 如何计算不同年份每天的平均值
- adobe - Adobe Edge 字体网络信标
- python - 从两个数据框中获取合并的数据框
- r - Mahalanobis 距离 - R 中不同机器上的不同结果
- excel - 在表格中选择动态范围
- swift - 谷歌驱动器与 iOS 中服务帐户的 Swift 集成
- spring - 嵌套的具体化参数无法创建 ParameterizedTypeReference
- html - 将 div 包裹在引导行内 - 不是网格项?