mttime.core.utils.gaussj¶
-
gaussj
(A, b)[source]¶ Solves the linear matrix equation Ax = b
Computes the solution of a well-determined linear matrix equation by performing Gaussian-Jordan elimination for a given matrix and transforming it to a reduced echelon form.
- Parameters
A (
numpy.ndarray
) – coefficient matrix.b (
numpy.ndarray
) – vector of dependent variables.
- Returns
solution vector x so that Ax = b.
- Return type