繁华开满天机
np.linalg.qr只映射到 arr 的第一个轴怎么样?:In [35]: np.array(list(map(np.linalg.qr, X)))Out[35]: array([[[[-3.30595447e-01, -2.06613421e-02, 2.50135751e-01, ..., 2.45828025e-02, 9.29150994e-02, -5.02663489e-02], [-1.04193390e-01, -1.95327811e-02, 1.54158438e-02, ..., 2.62127499e-01, -2.21480958e-02, 1.94813279e-01], [ 1.62712767e-01, -1.28304663e-01, -1.50172509e-01, ..., 1.73740906e-01, 1.31272690e-01, -2.47868876e-01]