NLA-lib Explorer

Scalar powers by sequential multiplication

Library · Source module

Scalar powers by sequential multiplication

A literal one initializes the output, followed by the requested number of multiplications by the unchanged input word. The word theorem holds for any scalar machine. Exact arithmetic identifies the output with the ordinary natural power. Input and output are separated scalar views, including views of one arena.

Main results

* NLAlib.Ops.scalarPower: the computable scalar implementation. * NLAlib.Ops.scalarPower_writes: its actual word-level result. * NLAlib.Ops.scalarPower_writes_exact: its exact arithmetic specialization.

Declarations