Skip to content

num::solve_in_place

Defined in header <linear/factorization/block_tridiagonal.hpp>

void solve_in_place(const block_lu_factor &f, real *X, idx nrhs, real *work);  // (1)

void solve_in_place(const block_cholesky_factor &f, real *X, idx nrhs, real *work);  // (2)

(1) Solve \(AX = B\) in place: X holds B on entry and the solution on exit, as n x nrhs row-major storage in the original ordering. work holds n * nrhs elements. Nothing is allocated.

(2) Solve \(AX = B\) in place from block Cholesky factors, as solve_in_place.