extendr_api::prelude::modules::core::inverse

Function invert_unit_upper_triangular

pub fn invert_unit_upper_triangular<E>(
    dst: MatMut<'_, E>,
    src: MatRef<'_, E>,
    parallelism: Parallelism<'_>,
)
where E: ComplexField,
Expand description

Computes the inverse of the upper triangular matrix src (with implicit unit diagonal) and stores the strictly upper triangular part of the result to dst.

ยงPanics

Panics if src and dst have mismatching dimensions, or if they are not square.