NLA-lib Explorer

Spectral bisection by explicit downward and upward passes

Library · Source module

Spectral bisection by explicit downward and upward passes

The traversal keeps the node matrices, bases and outputs in level arenas. Slot sizes and kinds are actual stored words read through bounded index queries. Every level draws a fixed batch of uniform and Gaussian words. The tape has one shared position: from level start p, uniform words use positions p + i and Gaussian words use positions p + n + w; the batch advances by n + 4 * (n * n). The downward pass and the upward pass are first-order loops; the node body is an explicit subprogram inserted through a frame, rather than a solver primitive.

The shared constant buffer contains one, two, one half, minus one, and the square root of one half at offsets zero to four. The node frame receives dimensions [n, L, F, d, lo, k] and operands [par, Lv, Su, Sg, Ma, Qa, Sz, Kd, Kp, c], in that order. Its parent has already tested that k > 1 and that the node's stopping window is larger than the requested tolerance.

Main results

* NLAlib.SpectralBisection.downLevel: parameter computation, samples, leaves and node frames. * NLAlib.SpectralBisection.bottomLevel: fully initialized output at the recursion boundary. * NLAlib.SpectralBisection.upLevel: child and split assembly from the actual metadata. * NLAlib.SpectralBisection.solve: the fixed arena program for an explicit node subprogram. * NLAlib.SpectralBisection.bisectionProgram: the complete tree with the actual node implementation.

Declarations