|
Motr
M0
|
Data Structures | |
| struct | m0_linsys |
Functions | |
| M0_INTERNAL void | m0_linsys_init (struct m0_linsys *linsys, struct m0_matrix *mat, struct m0_matvec *vec, struct m0_matvec *res) |
| M0_INTERNAL void | m0_linsys_fini (struct m0_linsys *linsys) |
| M0_INTERNAL void | m0_linsys_solve (struct m0_linsys *linsys) |
| M0_INTERNAL int | m0_matrix_invert (const struct m0_matrix *mat, struct m0_matrix *mat_inverse) |
A systems of linear equations solving algorithm is a part of M0 core. It is based on Gauss method and performs the following:
| M0_INTERNAL void m0_linsys_fini | ( | struct m0_linsys * | linsys | ) |
Definition at line 47 of file ls_solve.c.
| M0_INTERNAL void m0_linsys_init | ( | struct m0_linsys * | linsys, |
| struct m0_matrix * | mat, | ||
| struct m0_matvec * | vec, | ||
| struct m0_matvec * | res | ||
| ) |
Definition at line 33 of file ls_solve.c.
| M0_INTERNAL void m0_linsys_solve | ( | struct m0_linsys * | linsys | ) |
Solves given system of linear equations, writes result into 'linsys->l_res'.
Definition at line 126 of file ls_solve.c.

Inverts a square matrix.
| [in] | mat | Pointer to an input square matrix |
| [out] | mat_inverse | Pointer to the inverse of an input matrix |
| 0 | matrix inversion is successful |
| -ENOMEM | out of memory |
| -EDOM | input matrix is singular |
Definition at line 136 of file ls_solve.c.

