lrux.init_pf_carrier#
- lrux.init_pf_carrier(A: Array, max_delay: int, max_rank: int = 2) PfCarrier #
Prepare the data and space for
pf_lru_delayed
.- Parameters:
A – The initial skew-symmetric 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 2.
- 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
- Rinv:
The delayed update matrices \(R_t^{-1}\) of shape (T, K, K), initialized to 0