np.subtract.outer()

關於np.subtract.outer()的使用,如下作簡單介紹python import numpy as np a = np.array([5,6,7]) b = np.array([9,12,10]) np.subtract.outer(b,a) Out[11]: array([[4, 3, 2], [7, 6, 5], [5, 4, 3]]) 上述代碼或許
本站公眾號
   歡迎關注本站公眾號,獲取更多信息