numpy 辨异(三)—— hstack/column_stack,linalg.eig/linalg.eigh
1.np.hstacknp.column_stack>>>np.hstack([np.array([1,2,3]),np.array([4,5,6])])array([1,2,3,4,5,6])>>>np.column_stack([np.array([1,2,3]),np.array([4,5,6])])array([[1,4],[2,5],[3,6]])当然对等地,也存在,np.vstack,