extendr_api::prelude::modules::cholesky::ldlt_diagonal::solve

Function solve_with_conj

pub fn solve_with_conj<E>(
    dst: MatMut<'_, E>,
    cholesky_factors: MatRef<'_, E>,
    conj_lhs: Conj,
    rhs: MatRef<'_, E>,
    parallelism: Parallelism<'_>,
    stack: PodStack<'_>,
)
where E: ComplexField,
Expand description

Given the Cholesky factors of a matrix $A$ and a matrix $B$ stored in rhs, this function computes the solution of the linear system: $$\text{Op}_A(A)X = B.$$

$\text{Op}_A$ is either the identity or the conjugation depending on the value of conj_lhs.

The solution of the linear system is stored in dst.

ยงPanics

Panics if any of these conditions is violated:

  • cholesky_factors must be square of dimension n.
  • rhs must have n rows.
  • dst must have n rows, and the same number of columns as rhs.

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