December 2017
Intermediate to advanced
386 pages
10h 42m
English
We have the following functions and parameters:
| Parameters |
a : (..., M, M) array_like Coefficient matrix. b : {(..., M,), (..., M, K)}, array_like Ordinate or dependent variable values. |
| Returns |
x : {(..., M,), (..., M, K)} ndarray Solution to the system a x = b. The returned shape is identical to b. |
| Raises |
LinAlgError If a is singular or not square. |
Broadcasting rules apply; see the numpy.linalg documentation for details. The solutions are computed using the LAPACK _gesv routine it must be square and of full-rank, that is, all rows (or, equivalently, columns) must be linearly independent; if either is not true, use lstsq for the least-squares best solution of the system/equation.
Read now
Unlock full access