【发布时间】:2020-03-09 15:23:10
【问题描述】:
假设我有一个这样的 numpy 数组:
import numpy as np
mat = np.array([[4, 8, 1], [5, 10, 6]])
print(np.argmax(mat)) # prints 4
print(np.argmax(mat, axis=1)) # prints [1 1], index of maximum values along the rows
Kotlin 是否有类似的(内置)功能?我找到了一个Kotlin bindings for NumPy,但是我没有找到实现的功能。
提前致谢!
【问题讨论】:
-
This question 可能对你有用。
标签: numpy kotlin binding wrapper argmax