NLA-lib Explorer

NLAlib.SpectralBisection.room_split_matrix_blocks

Library · theorem

Both child matrix capacities follow from the parent slot reservation's capacity.

NLAlib.SpectralBisection.room_split_matrix_blocks {K : Type} {m : Ops.Mem K} {buf off n k kp : ℕ}
  (hk : k ≤ n) (hp : kp ≤ k) (hroom : off + 2 * n * k ≤ m.store.len buf) :
  m.Room [(buf, off), (buf, off + 2 * n * kp)] [2 * (kp * kp), 2 * ((k - kp) * (k - kp))]

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.Partition.