import numpy as np arr =np.arange(4) # array([0, 1, 2, ... 一般的一維陣列對二維陣列(矩陣)的broadcast計算是by row,而且row向量維度必須相同,如下。
確定! 回上一頁