LinAlgError: Last 2 dimensions of the array must be square
In case you still haven’t found an answer, or in case someone in the future has this question. To solve Ax=b: numpy.linalg.solve uses LAPACK gesv. As mentioned in the documentation of LAPACK, gesv requires A to be square: LA_GESV computes the solution to a real or complex linear system of equations AX = B, where A is a square … Read more