extendr_api::prelude::sparse::linalg::colamd

Function order

pub fn order<I>(
    perm: &mut [I],
    perm_inv: &mut [I],
    A: SymbolicSparseColMatRef<'_, I>,
    control: Control,
    stack: PodStack<'_>,
) -> Result<(), FaerError>
where I: Index,
Expand description

Computes the approximate minimum degree ordering for reducing the fill-in during the sparse QR factorization of a matrix with the sparsity pattern of A.

ยงNote

Allows unsorted matrices.