Function invert
pub fn invert<I, E>(
dst: MatMut<'_, E>,
qr_factors: MatRef<'_, E>,
householder_factor: MatRef<'_, E>,
col_perm: PermRef<'_, I>,
parallelism: Parallelism<'_>,
stack: PodStack<'_>,
)where
I: Index,
E: ComplexField,
Expand description
Computes the inverse of a matrix, given its QR decomposition with column pivoting,
and stores the result in dst
.
§Panics
- Panics if
qr_factors
is not a square matrix. - Panics if the number of columns of
householder_factor
isn’t the same as the minimum of the number of rows and the number of columns ofqr_factors
. - Panics if the block size is zero.
- Panics if
col_perm
doesn’t have the same dimension asqr_factors
. - Panics if
dst
doesn’t have the same shape asqr_factors
. - Panics if the provided memory in
stack
is insufficient (seeinvert_req
).