Skip to main content

cholesky_update

Function cholesky_update 

Source
pub fn cholesky_update<T: LinalgFloat>(
    r: &[T],
    w: &[T],
    batch: usize,
    n: usize,
) -> Vec<T>
Expand description

The rank-1 update of each Cholesky factor ([batch, n, n], upper triangular r with a = r^T r) by the vector w ([batch, n]): the upper triangular factor of a + w w^T, as JAX’s cholesky_update_p computes it on CPU (_cholesky_update_jax_fn): for each k, the Givens rotation of drotg(r[k, k], w[k]) applied to the row r[k, :] and w.

§Panics

Panics if the lengths of the buffers do not match the sizes.