Function extendr_api::prelude::modules::evd::compute_hermitian_pseudoinverse
pub fn compute_hermitian_pseudoinverse<E>(
pinv: MatMut<'_, E>,
s: ColRef<'_, E>,
u: MatRef<'_, E>,
parallelism: Parallelism<'_>,
stack: PodStack<'_>,
)where
E: ComplexField,
Expand description
Computes the pseudo inverse of a decomposed square Hermitian matrix.
s
represents the diagonal of the matrix $S$, and must have size equal to the dimension of the
matrix.
u
represents the eigenvectors.
The result is stored into pinv
.
This can also panic if the provided memory in stack
is insufficient (see
compute_hermitian_pseudoinverse_req
).