openmv中可以进行矩阵乘法吗
-
-
https://book.openmv.cc/example/04-Image-Filters/ulab.html
点乘用dot
https://micropython-ulab.readthedocs.io/en/latest/numpy-functions.html#dot
-
用了dot还是找不到这个module
-
你的matmul没删干净
下面的代码是可以运行的。
from ulab import numpy as np m = np.array([[1, 2, 3], [4, 5, 6], [7, 10, 9]], dtype=np.uint8) n = np.linalg.inv(m) print("m:\n", m) print("\nm^-1:\n", n) # this should be the unit matrix print("\nm*m^-1:\n", np.dot(m, n))