NumPy基礎入門(4)數學基礎函數

學習彙總:點這裏 1.簡單數組操做 >>> import numpy as np >>> a = np.array([[1.0, 2.0], [3.0, 4.0]]) >>> print(a) [[ 1. 2.] [ 3. 4.]] >>> a.transpose() # 輸出轉置矩陣 array([[ 1., 3.], [ 2., 4.]]) >>> np.lina
相關文章
相關標籤/搜索