extendr_api::prelude::modules::cholesky::llt::update

Function delete_rows_and_cols_clobber

pub fn delete_rows_and_cols_clobber<E>(
    cholesky_factor: MatMut<'_, E>,
    indices: &mut [usize],
    parallelism: Parallelism<'_>,
    stack: PodStack<'_>,
)
where E: ComplexField,
Expand description

Deletes r rows and columns at the provided indices from the Cholesky factor.

Takes the Cholesky factor $L$ of a matrix $A$ of dimension n, and r indices, then computes the Cholesky factor of $A$ with the provided rows and columns deleted from it.

The result is stored in the top left corner (with dimension n - r) of cholesky_factor.

The indices are clobbered, meaning that the values in the slice after the function is called are unspecified.

ยงPanics

Panics if the matrix is not square, the indices are out of bounds, or the list of indices contains duplicates.

This can also panic if the provided memory in stack is insufficient (see delete_rows_and_cols_clobber_req).