lrux.init_det_carrier#

lrux.init_det_carrier(A: Array, max_delay: int, max_rank: int = 1) DetCarrier#

Prepare the data and space for det_lru_delayed.

Parameters:
  • A – The initial matrix \(A_0\) with shape (n, n).

  • max_delay – The maximum iterations T of delayed updates, usually chosen to be ~n/10.

  • max_rank – The maximum rank K in delayed updates, default to 1.

Returns:

A NamedTuple with the following attributes.

Ainv:

The initial matrix inverse \(A_0^{-1}\) of shape (n, n).

a:

The delayed update vectors of shape (T, n, K), initialized to 0

b:

The delayed update vectors of shape (T, n, K), initialized to 0