Newton–Schulz matrix sign over explicit scalar operations
Library · Source module
Newton–Schulz matrix sign over explicit scalar operations
The matrix product is the only matrix-level primitive. Hermitian shifts, scaling, completion, and entry tests expand to scalar calls and primitive scalar comparisons. Complex matrices use interleaved real/imaginary words in column-major order. The initial matrix, tolerance, and scale are stored inputs; the threshold and all literals are computed by the program.
The loop returns its current iterate at the cap. Numerical convergence must be proved from explicit precision, input, and cap assumptions; exhausting the cap never asserts convergence.
Main results
* NLAlib.Sign.test computes the squared iterate and its entrywise stopping test. * NLAlib.Sign.step performs the rounded Hermitian Newton–Schulz step. * NLAlib.Sign.program is one fixed implementation for every dimension and iteration cap. * NLAlib.Sign.signRoutine is that program with its interface.