NLA-lib Explorer

NLAlib.Ops.Examples.npow

Library · def

The noisy power iteration: k rounds of y := nmv x; x := nmv y, in place in x, with a scratch block y. Index variables: k, n, the offset of x (twice), then the loop variable; buffer variables: x (twice), then y. The tree has no draw.

NLAlib.Ops.Examples.npow {Tst : Type} : Ops.Stmt Ops.Examples.NOp Tst

Full source on GitHub

Import NLAlib.Ops.Examples.Noisy.