Function invert
pub fn invert<I, E>(
dst: MatMut<'_, E>,
lu_factors: MatRef<'_, E>,
row_perm: PermRef<'_, I>,
col_perm: PermRef<'_, I>,
parallelism: Parallelism<'_>,
stack: PodStack<'_>,
)where
I: Index,
E: ComplexField,
Expand description
Computes the inverse of a matrix, given its full pivoting LU decomposition,
and stores the result in dst
.
§Panics
- Panics if the LU factors are not a square matrix.
- Panics if the row permutation doesn’t have the same dimension as the matrix.
- Panics if the column permutation doesn’t have the same dimension as the matrix.
- Panics if the destination shape doesn’t match the shape of the matrix.
- Panics if the provided memory in
stack
is insufficient (seeinvert_req
).